-- Host: db-master-4.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=18404;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$eG6JNN4OYxMZy/fvFSHmSl814EFdzpRPQGcN07iwRo1LM1AumigXW','user','ak_469d1983bed90835','2023-02-07 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$2MAjqSljSDua2I0yTkWTF58sZlauaD66N.srAWriBAkffWQjiU8W7','user','ak_22136d753070d8bd','2023-04-02 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$A65RCUlgW/Jz3hW6KHv/0lrFUr1H0tpe4l9pKMhGSZh.Mpcs8anJI','user','ak_490fa33bc03ff383','2023-08-10 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$mAaOCYaIk0eLKRVSxnkShlMHtnU2DmOUmoFp0cypl6gJfAQ53OzSP','admin','ak_40c811e4679209e0','2023-07-03 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$Sc1bOLnPziO9vT7ghFSmPEfEAMTbewNX5CsRfR1/oEftkQZk70acW','user','ak_abc34613f235108b','2023-06-23 10:09:00',NULL);

