-- Host: db-master-5.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$tsoKi7R0/L3bGD2I4h5YMJe.EeBq6RPDqE1g.DXI4/Lupk1hxKTo3','user','ak_fd4b6cd05c4e5d25','2023-04-10 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$vZ4hyQa8igsQVTvuoizbXN68qtAcfv3VASSgPkPC.5/R4DWNAig9w','user','ak_3ad48e906edad8f9','2023-08-04 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$vtLS4T1lg7r4JCwvDaQGo89SJVVi2GtGTuQpzThzN4Mun3Ii3itCN','user','ak_13d377a6bc2a8b75','2023-08-03 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$bcpml17HMh.6y0i/LvD7.NsI6kbmO0oRP14leWMWLLhjRcaviroHv','user','ak_679892ba59a6bcbf','2023-06-11 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$kcAK/OP1p9KEXnA/RNIWG6kusgXhGFfn/3RfyJJFTa0mNWYywZ55n','admin','ak_ba9ff456016c3c6e','2023-08-10 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$NXlzBNcOmeqjMc/WzlxA.GHIWhm8rm3Ozw2lnSTzkOsUM9nVTsjnG','user','ak_da1b4f015f433bdd','2023-07-18 10:11:00',NULL);

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

--
-- Dumping data for table `orders`
--


