-- Host: db-master-8.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=43552;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$/mshB.ZghPA.MCY6WOw6JdMn5..PaubP9fXZZRa625iBjN6Pd72.Y','user','ak_dfe27e865e8c4285','2023-03-02 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$FFCY4lFAzPmVmvgcBsYfyeIv3K6u1nPdGfrx8wyOya9op3PmtQb9W','admin','ak_fe77f9712caa92ef','2023-02-02 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$dfCAa9OuxgHO.RPVZmW9XhKhucvZmr5ORisjYi56pQQx/4cqn8X3a','admin','ak_14970e7ef5832416','2023-10-27 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$HeKHF4k7HhzaNdqMhnlzfgr7.p9xpbdHr7pS8o5OXXMsPfiZeXXFg','admin','ak_e1ad5921bb7265a2','2023-11-11 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$qcwSZ5qM69eKJanyybIAvYoYdaSpMMbUNr26X9zanBQHfDQIO5H39','user','ak_90303c4fe7c4ddfc','2023-09-01 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$LhS5fr64.SB0J.F7qQZ9n6xD/WKJftOY22SerQb3vbZM..iBCVry0','user','ak_7b78d59e404f0e21','2023-07-13 10:13: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=43052;

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


