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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$W4NR4j6SO3aFy4hU571OerMSO/nM3In2pvyj./SsARXX4DezJdid7','user','ak_1668ebdfdf6966db','2023-05-19 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$ibYrtqsvXGZhHUezzsXIiys6r7j47roFkEdjAizb0w4QLiC3sC37K','user','ak_372b2395c9cf5e6e','2023-10-14 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$W57TogF/xxf4Vfk4Dmdl8pJM8w/Xp2Hvb21xgidKY3tUWoS0grPU3','user','ak_90535bc6cf69f405','2023-08-23 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$Nl9KtHNKcLUM.1Gf5BNiBw.KqcHU6EijGOrfMA6wrIVh/iPaB2Umh','user','ak_e448824f7cb7c237','2023-05-22 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$FSWNSD.efQmohT/WytKo7M/9mMXY0/CUqbXI3YOStrfS1U7vo.PBL','user','ak_3ed7a4d38b6f79ce','2023-10-09 10:09:00',NULL);

