-- Host: db-master-1.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=12307;

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$SL0hgKinSMtBFlBR8zLf/jh9DqANewqD4kl4f8gQUyedDSQxPeyqc','admin','ak_f60119dd216b1e12','2023-11-01 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$OcQg4VqcQ3BFhiM3ynLO3.idDc.isIhZ.SjPXY8tHNS5PtjKwN2Q2','admin','ak_bc2f46ece83e234d','2023-02-28 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$eIz4ODoNAJacEo2TASxGXe6AW12x5lfnjBEf54otUUrWXcod.qwYM','user','ak_3ddf426de8d98ed9','2023-11-16 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$4N2PRV0xXTDZSKQUdaD73k8WfSKkBMF1HeIF7DdEAWFEo7S2kWeBQ','admin','ak_ef47fa72b78004d5','2023-03-22 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$6OOrH3NuRfzKsiBhB4knPr9MSvKUnBcz6ZeHfhxg6EPm3htwZWIrI','user','ak_ddd7522b587a18c3','2023-03-05 10:20: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=19608;

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


