-- Host: db-master-3.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=14706;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$rjtknsdc5kNi.tibUlOubIWBQUu/1EDfaJlx3IPt0NmvPJA6ZURXZ','user','ak_83d020ee9ea75196','2023-08-19 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$5yCkc3qtqvYHYxf6p6bx0YwUdk44gHlXgxFfGqtB5KjggHsXxeMfe','admin','ak_4634d34d72f01df0','2023-03-18 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$kKpXRrWVdCmQQjioXI49xsrVTFoAatM25TcS3ZWUUrt6k282nQzE6','user','ak_2a6096e34150245e','2023-07-18 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$17wfCkwnFbAEmJFM/8O6HhRe0MTNZuan9p9Ii4xCm.lV1VQUe4FbY','user','ak_68bbb3cd768f347f','2023-10-25 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$QMluLJzPSHU88.zHVLYJIfPu0Hv05mGwDPjoOZ8oWH0qD5OYUxmqR','user','ak_528c0099d1938464','2023-08-20 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$cnmSsl.lA4TqTzIZbET3MaMLP9DVOlKGZIQcrj3gVWFlcE7RMXYMW','user','ak_b1591cdec96bbae1','2023-10-11 10:23: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=35596;

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


