-- Host: db-master-9.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=26209;

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$E4C8ExapKA9DJ7omGMvVBBjmQd9gJFOd2dw4fVgr7mAEDW51Rn.3n','user','ak_15b18edff9e13202','2023-07-19 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$SDSYuzZ7Qt.J7fysFSnjJrKBEiNTAnmT1SUwAvx8xr0m9ubJGTFuF','user','ak_42111cf531afd541','2023-12-18 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$3Qer0xrhvWDVX1xnPU6UU1jqYoOx0vnP/AxorJGXVVIYs1ItWa81M','user','ak_83d44c5dcd7e61a1','2023-03-16 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$L.sLI4X6S595qXGl.zi0IyRqH468.o/1rc6EUvmtAD4RnfYJ6IfYB','user','ak_edef791562098088','2023-04-05 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$WnbOfB/yjvJE4WxEvZo0avWtX4PB8NiUvhIksE5y0eT80ZK7Ixcu4','admin','ak_1959d9d0a83c7766','2023-08-23 10:19: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=22815;

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


