-- Host: db-master-6.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$RVQlCmSsb9I1m4.4aWNDEdp97BvLRPUcvbDYWocHlDRr91sJu3nkU','user','ak_e183ddcffef58dcf','2023-03-15 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$M8gpaI6XvtgFjtQi2dPZuks6MWJrCUl7MjJZIJP5LfW/.qyv0Hx0J','admin','ak_a8574ce61bf1d52f','2023-10-19 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$YsPAGnOV.xW4UIXPANNvYruvWRoehXWsaMAHzQhq1LG/ltGSqtadW','user','ak_ab4e2d52ed465c09','2023-07-15 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$wao4KDJCNfkhd3.VYi1dAoYHeUeXG5Hj74DvkocJ.P6RPWqxC7GsH','user','ak_3ad95841a8c4773e','2023-01-23 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$LVcQshtEXVvLTMkw06uH.BvLfpjbMqx5LmoP2AGKEjXKqaS7BaX6T','user','ak_1dbe7930c9645734','2023-06-01 10:20:00',NULL);

