-- Host: db-master-1.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=41924;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$F73ALyQWTeDqHBPnzp4fyBhX1gAH48ZyDppVRT0xOlMJknNJkGYCp','admin','ak_3780619a42eca0b8','2023-04-22 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$UK1ScRdfwTUA4V5K/OY7wvwtEFPUKA5GfpX3NhjJRSkaohRDO0TTW','admin','ak_107ce8f062cba769','2023-05-13 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$Etncu5I9TE8gwB9eQs.bTBqy/oAw7/zQwc3LVW7..B.xASuuLBAqn','user','ak_624b6b0b027cb2a6','2023-03-19 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$7p0CKV2pEt4gKYusF2IzUl4MfoPQE1XKFco4y5/2RRge0Rh0Ks4Lg','user','ak_cef6eb80a0239955','2023-06-18 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$AB9ZGc0fxj31tFRfm503NGsezpWvddkRklXDVgK6NtpMFQ5yjO4Ky','user','ak_4bfc23115acdd91f','2023-07-23 10:06:00',NULL);

