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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$MwDrtwqAWdzhAtcLDyF3G0d5rXMGqYn2O2SLJy54KBfgY07OnAiZC','user','ak_114303c65f20050f','2023-02-22 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$l2FUjWkddL3SIpwddSAGuFJ4bhyeC0GqT94LPJuucf6h1./TFIp4K','user','ak_a84a6ec9164becf6','2023-11-22 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$yF3ywZIbh1o0L7bJbgGQClc4ftNPT7/lX5mzZ76MzWRUlC9BJQ10/','admin','ak_08b06140add7e6ef','2023-11-04 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$qGfWEQ3zUwpnU719pYWwX1YCQOQDsNohbna3Pe06SZCIGyx2UnLVx','user','ak_b96bd2d4fb636969','2023-03-25 10:00: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=36420;

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


