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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$sVoCniBGow3lPMKm.aF.dgh6h/Kv28BgYvck4TAyRz1HKw0QOl1dq','user','ak_c310beaffd50ec43','2023-02-09 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$iw/B3drvBlsEM14GbO1AMKbJMcEbQosWd5aqDyRCL7vnMd18BqAbU','user','ak_9eaae0f05fc4bc21','2023-04-14 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$oNdZPttLOHzpx4BarovyRDVZS7hoPizRaDCCPle7PDhhoexBXcmAz','user','ak_7df02a5b8a11f688','2023-11-22 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$9j1YP4KFXn6FVAuyB084Ae9WHY3Lv0LYKlYmJy0OAMltLv54A2X32','user','ak_9416fa606ed2c0eb','2023-06-16 10:12:00',NULL);

