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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$Udnq/1dhMi3Pu7MYkEAZ75zOEy75Naz6wEPv1VRrQvtbfF74O1BjG','user','ak_95b5c7066c8dde61','2023-05-20 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$IJzYzN04qvB9h9mGbL8m0imJlPbl0TM9tWnFf65Rmx5D0D4DlFxzI','user','ak_e1baed08af62b9c5','2023-05-01 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$1B5BVRm3T4ehEh6J3BSCK/LmNK4ICgHfrHAVDcIvU2UKXHKqbkMq5','user','ak_127ed20100bd36b9','2023-12-12 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$BCZ8HUUekGtHBwgQVO8C2Sc7h0Gr09EUm8j.tmLam6rZMFcp9Uc0W','admin','ak_5536f56e372c85af','2023-10-08 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$57Rig.07e1OmcaC90z5ynGd.rCcDFtMXI7GhtE9fFaQNJ8qiNja4K','user','ak_91b3c885f2237df0','2023-08-21 10:22:00',NULL);

