-- Host: db-master-6.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=50867;

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$xyL8fcivBzuzaSLJTw.z158KtvxxvB.gXXY.mhMzigGcZT7TWtWPl','user','ak_590f4141e7a976d3','2023-09-28 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$fGgOezXB2ah9NtKB39zUauc9miy9qpxMiS90lqg5a10jZWviZpH7c','user','ak_5113824d9c042deb','2023-11-23 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$.wwV/ZD09/4MsPDmu2OuViXMTySvMqPNqsv6w0CylJWBODebSLiCr','user','ak_66d8452d09810e9b','2023-08-18 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$X6Q0BgMaSElw7CjzpdtwygAp984nYhF.WcQvoqnzF6QsNltV3N0vw','user','ak_9e8ec1b5aae2b2bc','2023-10-13 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$nRdPJfjJiCyPrIpnblXCSGaaVFkWlURNQkwEd8WcZAW9mKa.HdfZU','user','ak_9585625f00b18783','2023-02-02 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$SDeWMQ5DU8HfSYK2ufw8R6eW8lwN8YaOu7XPtPzOPukQzpx4OigXC','user','ak_807ff53c44e2ee9a','2023-12-04 10:09:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@example.org','$2b$12$T.WuL.d4jlgEqywR4AFTv.FORoEhaki/Cts.FoseulLnTaa8QQWZ2','user','ak_a7dd0e89f250b800','2023-11-20 10:06:00',NULL);

--
-- 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=24512;

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


