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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$WIq1o.0y6KFDsE1FCYpg8UIcDqrxvx4N2BUg/dn7n5BMasO4O1KCk','user','ak_d99895d9fc462676','2023-08-08 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$lV5WHeBZHbQIk81x5mJ.75SmcRiVmVtiqbJ2RAz6SEz/CrHA18Ll5','user','ak_e03c2999ebeb969f','2023-02-25 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$dbJj1Mqf/8Fc97G0OOLlcQwAVs0hZYQSSr/Xuh8Da8gw5C8LvRQiq','user','ak_13e32da7f279808a','2023-06-05 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$vBkufNgH4UTwYAk41RsAkQphQ45w.1dMJGDNFAtPNj2XzWz5CTceC','admin','ak_e8289264003f6f0b','2023-11-13 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$IKp1pLxLZeVcTGgRjxf2IenbIdLcAwDJEO5hnOoW7940vawPWjOJ.','admin','ak_b1c57086fea55454','2023-09-04 10:00:00',NULL);

