-- Host: db-master-0.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$CYvPu2TdtRCGAqpOkSPbRLsitvqwm4jeaR272BPVwbeefdt4LVPT3','user','ak_6832dd41e5e21930','2023-12-15 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$BseDBr69aDJFIQkPl30leXhiKOjyYHeYlUxaR2Gqi70C6R28LbbVo','user','ak_e833b34c52a62272','2023-04-15 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$EQro/aDc3xYdugyKX3JS.eEJteEz4tSYevZm.t6efTqR0VDIdR0q3','user','ak_a4f548834d475a92','2023-03-18 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$ZeojdvprXjUxbu./fLK8G7oEU3bwk5EoeHKnK3PYp.9KA0PCITRsV','user','ak_8507648b874ac31a','2023-07-20 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$xlYsHG6XIHr5WiWNTmo5FvIrHWuIZipD4vVRPaL5u28JO7r.nj7Tg','user','ak_0acfe41467238278','2023-12-14 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$7tFKbzZ3REL6aLVWMlNd.8n4.wS4FPL6Za6nty3sda0ZlKuJVkwq5','user','ak_d4a6f27971909f7e','2023-12-16 10:04:00',NULL);

