-- Host: db-master-6.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=46581;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$c4n2XT1zo.RsZca2/RNM44RueTtTsUM6NvYnBUW8/ELBIBHhOiKlT','user','ak_076bef2f17174f02','2023-05-01 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$MKeoHdeBavvv.VlV8Tkg3/naPZZe0pE6NoaPzJWP6PI5FD9mVtTSV','admin','ak_8c24e1112861075f','2023-03-12 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$NtenkkbF1kR9VycipmXqI.z69ngIV/vK69/cQ5yeM9Ed/fEiYmdbz','admin','ak_db794fdb3d6c9653','2023-10-14 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$Dto22U0WguNUXTHtVzlorM/o9ivnHZ/DsJAeTf.GGjbn7zJ8ohR.4','user','ak_5b43e8b7cf3a8542','2023-09-11 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$HM4RzqegBj9coxPo6.yNsd1/JU7I9d1.Fr3GH2lqLS6hPCGQMYcOU','admin','ak_39a0fe3c4484d302','2023-04-20 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$exptgJ.F45YWuLUJx5YDaIB0eeypCG255Zt5AqW8nertmvw6vprzH','admin','ak_fb97d60707c1bbda','2023-05-09 10:09:00',NULL);

