-- Host: db-master-9.internal    Database: customers


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$g8n/MXs2NiE.oeS4EDdGvPgfgDT3ghBa1fKBT3LY1KW5n7u5lgbCt','admin','ak_eca09fea49ce9706','2023-03-17 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$scSA2WWIl3IfKAh75b/Qrlo/g886KI9JFYFxNaPhl6yw9Kocn/w3I','user','ak_30a8011d44818725','2023-10-07 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$3WNHNQTilR2myzvVk9lZdoW1PcMRf5INn8GiiBy1fePjmzTtJdh8P','user','ak_8fe70b8c571e6274','2023-01-06 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$s2QY3.kTinP5acFkAdZ7croJYFw5KZJje0DpymJDz24CE6BFI/OvX','admin','ak_0d4ed3d0d6f8c9c7','2023-10-26 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$xPQGek.GwIPozmDWUqywIl0rQ.XnkSEF.ljXRO.rYqf1452ZBFXpC','user','ak_6b5150d18d3d5f65','2023-03-15 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$YOUrBBWjefOmFD4xz64nsLcmebceIb42SW89blGYKnhCZuJbo6XXa','admin','ak_552aa6d8e182d165','2023-12-26 10:09:00',NULL);

