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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$R4R4tTzbgI3ldELN3uTQA16rHWWdabtb8MH6BRNdtvxM5spZNIOj4','user','ak_766d771f34c0c939','2023-01-22 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$Hi1ZV4ll9xOXqucSh04nnIqxv0vfH0xzPp0g1G3oXjN/pne5VB0HX','admin','ak_8b1241861bc195a9','2023-01-07 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$FOMFYTI2YZtO63pXCP97NnWWKoRw/tj7SSR/w35neJj2R/wiQ5Iao','user','ak_c7dda68261213789','2023-02-12 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$XuvWuQhuH8oEC5Zh0W4W021.RmIpV8MtSWPQZEztW.Y98bV.feLC7','user','ak_0fb906634706f9c3','2023-11-28 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$0Cc.aeZK8UoSWO5Td7EDR6AZZjJVRsiGMXBW3ofQot.p8Ltb4kRo4','user','ak_2b83ced251b648fa','2023-08-01 10:13: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=8534;

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


