-- Host: db-master-9.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=33928;

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$RoRLf20FlHpWVzBrQb55dfhn0ZUTdkYeS5RYL4IK1f2T1brxn2.eg','user','ak_9c956df87b87e2f8','2023-01-14 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$UNIQJMYHqhJ6YDnUiA74ZSu191hv7sPpBWMViSXYcpSsKcZHRAjJc','user','ak_f040a23c63d8c011','2023-10-05 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$.6yDQiC1skq/V2I.xBYcC5zM62XpCcTu.TPgniD4Hf.c0ISggcsOs','admin','ak_f25f8f6d6c6b2ea6','2023-12-17 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$18xA/QnZwiKsZGFJ5HBj09biQcBWPxPUlHoJCD5g4XAZ3u6Lgs.V8','user','ak_ded35b6782f7ac71','2023-06-19 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$ONjckPrFbVb.VQcyCtPI2xi9uNbwoJGQKv2EisVU9/O8hYBE0YFlM','admin','ak_98c68a5bddb09ba4','2023-12-03 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$YyIl4OXcKzvkB9NS1Elca5Mcqs8gvfthoTYCHnjbUhcVipmZ6XINk','admin','ak_27680a2133288cb1','2023-12-03 10:03: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=39400;

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


