-- Host: db-master-0.internal    Database: ecommerce


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=28180;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$KcRGKQMcVQRJmuy3cpfuzI6OJLWkz2i66DEsOMaO7qvld3kZerT5F','admin','ak_3da415b9e883b9c3','2023-06-10 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$SfGuybvWAjYds3HG7/DNwfqkU1Msvv3j/aI76gSfPV9dO1p6pXIJv','admin','ak_b2f2dc7e8d197b6f','2023-07-06 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$jJjAuyPMm.5TitPAlFSyIhV249nh//isDS4KsRcdkWcDpUI2nvXc5','admin','ak_fcc8bd711e93b844','2023-08-02 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$6U/xMyVgfo9ZyNEEGL6WqO9TIGXOpe7NEnhu.QHMyQb0D2obZpOPh','user','ak_c3bc7b08ea6b4e11','2023-07-13 10:02:00',NULL);

--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=38310;

--
-- Dumping data for table `payments`
--


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=8527;

--
-- Dumping data for table `products`
--


