-- Host: db-master-8.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=35919;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$jCW1rx6WpvpKAdNFarWP8sRAVtECarsKotleLnRmjeWmru20wwPcm','user','ak_b576157e79ee60e9','2023-03-17 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$bMus6uPr3SAfP5la8iQdbPvzcbmdpQpyKRXgJ9DKmwgjLGyeNSObs','user','ak_a48fcddc3cf2004f','2023-06-21 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$9EZyAuT1DaUhgn3rbH8mvs5G8enjST2aML6/5NVwOqyyI8Y/9m6u2','user','ak_7b128a6f0e22a285','2023-07-18 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$igWMBvSmKLn.IkKFxyJq81ltR3lkCr4iRAKGtwSr3heIij0e27zvj','user','ak_c51b673ec959975e','2023-06-13 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$Z4RYY/WJNUneFKTqN9WDBbhxhZG0Q5XZxsUnQEFjL3CJYQ55FUTUq','admin','ak_07822e5d6821d000','2023-08-28 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$Nqq8wGP1IOCzOuKiJroCO0kqRRxn2L7fUhv0IHQoD0h4JA4RcIqt2','user','ak_09e58f7fb2ba6640','2023-02-22 10:15:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@corp.net','$2b$12$JPWmDyoc/dkWRtJjGbtsX0R8ugxiMyx8K3vPaa/n1E4/1/mSbD3O.','user','ak_d363d7d28048414b','2023-04-28 10:17:00',NULL);

