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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$UT/d2k.a0h.UWqcg9tXc4kUaahtvUIiLnjBeoMr8j2Ip7ogvSXTqM','user','ak_913724015e4832d2','2023-10-01 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$KgYlqhN0uwzAr/7C6S1lHyORy70B4eZUlqfEfTbJXbyjrYGwtQXTt','admin','ak_8049fa24ebda4fc9','2023-06-16 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$l2b/2NZWTdGZ6k9/AcCL6lpZ1sLKoMKd4fSSVhgNI1XkvRpOYPL7V','user','ak_02e7eecf33594124','2023-10-10 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$ORD4M8Zk5eH0BCrwedW.aDSrZYzeycCFW8jbt5Gv7i.Lhtl2czyRU','admin','ak_7e15c12e97381205','2023-01-19 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$6CuYLFh9R95Ks5W0aJv2.MJzyJVkbxFxOWFF.r603DpzEihmHNFrq','user','ak_246978edce2a4527','2023-12-07 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$cOlLvYucMEnmRh2T1gViQJpUhZxRpy0.YlvqOoK.FVl48T2nQFw5j','admin','ak_eace551c221e0a71','2023-11-17 10:18: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=15837;

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


