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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$L/yULPNxYAFBmVf12.TgPUF4J9mVcSyMI.42G4CM.cKbb8PS3379m','admin','ak_6def96dbe8806958','2023-10-16 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$6tVufsNd1JuGhOm0yB3duiDXNMLm5HxTT99P0dLrmY/74BP5vZD2B','user','ak_a350bce4e2193e83','2023-12-05 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$Fp4dAq8BbmaB0/7jk8.CvQp2yUwmvh6UK59n0EWCT2oh..WTkZDo6','user','ak_32b5c0b27d63c775','2023-02-28 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$WESSWyzZPkIiXGUpRTne.i3zaWh/LyUZzfaQTtPyvFfYAxLA9uxQe','user','ak_ea9ad0938b8a321b','2023-09-05 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$.Z5z.1SX/FTMHkM4hMCHK/HlCENXYabkSlcRXCBnHExNu2gsT9HT/','admin','ak_fe4fc79a56249307','2023-05-24 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$qx1WV.6jSbTZkP4/A.MMUqM/56kbLGblFFd/uDzU/GJr2SlBZYtIL','user','ak_4145e41e0a9d71c6','2023-05-21 10:11:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=38458;

--
-- Dumping data for table `sessions`
--


