-- Host: db-master-4.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=32310;

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$o/sTBM3PzwWMDFXV9wK4lXiey0xdPlcdEq4eiTxbNnG81facDWozR','admin','ak_73db9688a032a6ae','2023-12-04 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$o5Lq.D2K1auNBSKtNTOlYAaefpQ9wVGVKFAg94tcY.y7dWvJ4EOua','user','ak_8b79082f4c9edd1b','2023-05-23 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$UZt7mqJIYDXQkKtZruAYG5hFjMXx6OyU4AioqpgeADJv2pLHYiZ/c','user','ak_06f32da15b41b396','2023-07-25 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$wcNk5GWDT2R6ZPCupDPWY28mCJcgDrqUOOWKCqxw0e55LGO53lfBV','user','ak_86af3baf06a9f23e','2023-04-13 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$uG8NAF3A4En8c.HLuf/GF1fotOy0nFbYGSzu3IUs.HWNMh3mHD5Gl','user','ak_f29d09c5cb0cce3c','2023-04-05 10:21:00',NULL);

