-- Host: db-master-1.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=37460;

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$Nu6FUGpjbQKVzaJM/fhLPF5KI73ary0OUID/QU3rqVDIsEOXkqP30','admin','ak_aef56e31cc85ad75','2023-03-06 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$iO87c2HbxIy2BmSHV343j6bNRguuK3ZlkDqit79YCpiCzwMLFw3rY','user','ak_dfdf091a0e5fcfb3','2023-09-07 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$2upt8IFMMXfYDo6kg4sEZ3Zla0hH5G6segqNfm.gMQitCBvVgBWvw','user','ak_f01332f6c7ccd28d','2023-01-15 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$HXrfbrS.qO9YW9aIrIedb3Fqa6xLx6aNQrDecU8BG9HUTfy.Aqnd6','admin','ak_c41c19b7cbd0c1bb','2023-11-28 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$XjxDUAHzo1CSuj4ZQgtQV4Ztwp.AKnRK9ON/lBCV4BvHfbmZ43ISW','user','ak_5107f310a82e13da','2023-05-20 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$dOCoLSvMAlICqUeK7y6HfjSTnKh.lBjjMcNUYdIZ0DTAD9YTSJAgm','admin','ak_6f5fe906ca401210','2023-02-28 10:22:00',NULL);

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=13614;

--
-- Dumping data for table `orders`
--


