-- Host: db-master-4.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=11581;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$injXyrILdkUf6phOLIcQQuUHo7xB1KHWShPIJ5kDGn6Pe1NFoacmm','admin','ak_10ba220d6dd3feaa','2023-11-21 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$hHWnnlGot3.58pQu8q75.6lhPhTRN7KOv8Wdtn/JRDwiFbmCA4MAD','user','ak_6d4ee94e89340d07','2023-04-18 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$S8snOujYtmMsk46E3VoXh0v2TZIXUk06Du/gMcHbDIyjiIP2Q2GvU','user','ak_5415a3eb7eec059b','2023-01-16 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$hJ0hvswGeLcN6DL4OTVDgHpYalz1RlqGrAz6zLnk4H9HsW4lbbBKS','user','ak_6350db18e530ccc0','2023-10-14 10:04: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=4657;

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


