-- Host: db-master-0.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=49250;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$oB05k1DfmAtRR49BYjmZbnkpKQlDrjBe.5uPLjOL8U.rMxs.A.Ido','user','ak_e58bfdcd499d08e6','2023-10-20 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$jzvPM48B6o6oChcmW.G28f.UNIGNFpmIo0TxDfbc2V4YFURDROagP','user','ak_f83314f415a15542','2023-08-04 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$SNRT1jjah8E3a0.X/M54dArbwWdyik9Blpe8NTkaq.iz89jULmn3s','user','ak_e8053f2b94c17de1','2023-03-06 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$bbYftLU5NWix/4.Y2C2j00DJUaC5N0eTS66R6KV0l.dgrlPiirg6R','admin','ak_d57853cb80396f92','2023-03-13 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$RHg0ZGAIdO14wHeBbBHjRp/2v4JxUXzH9Py0RRjLTmWwytI9Ny4Hw','user','ak_fe85b4a4a707481e','2023-09-15 10:14:00',NULL);

