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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$h9E7JjlR39GqST6sTfAtEDspH3.ZDoOX.l8Ciy/R4TFGypi7EL2Qw','user','ak_5370b6028578d9e2','2023-02-11 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$Jj5DQOWGrH1ct2dSEkWVnjVorymVsEgg5XyEZU9OK7pOaQlMqOzsz','admin','ak_5aa9da2362534c7a','2023-09-27 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$Y24Ph5XKJKMZSuhclbeg9dLgDW7yhTUUFLIgAhUAgxkMU7h04TLgV','user','ak_852a8015e15bdf59','2023-08-19 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$NE/JY/fb2uX7QCmS15bZ3BmrznYhpG5yTITjmHtoAEgXwq6n/9cl/','user','ak_c6abdfef3367c50c','2023-12-08 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$bd3TyPcF.uHZBEKXVs6H6nu/Au5QbDEo9g/GDW7wauQKF/Ce0Hot3','user','ak_2f5f3e6142e8ff22','2023-03-03 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$adJQjGSo513VqUL.gfxXDLy/rQVpPiCn8PIx62hI.gpCkBfGsudiQ','user','ak_44eee282f1ec518a','2023-08-22 10:10: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=13253;

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


