-- Host: db-master-1.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=8228;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$WYXaniUlyQ0RNOJeN.GpMjDUXifqagg9Qg2L0LPTRiIX0vI5EGmT3','user','ak_5d50d7650d70bc44','2023-02-24 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$/CL7RwnEHTnq05XzdACJh7Cbiq/D2QKECfc1ScGU3fR9f9tLYsOFY','user','ak_7cc71ea1a27200db','2023-02-01 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$bIM10GOj83BHIV2MxChz3T0eRPB1/NQ1YiN2QXvula/0GnvDfJJbB','admin','ak_b7fb563d114ca9dd','2023-03-23 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$LmLFCHmqjIgEV0wf9t1UfJenukEtiIwEn538aU47MdInkYQUqvnVc','user','ak_b7a1ee75b43c07c9','2023-07-07 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$UaIDt8hvlwLtY1NGI68wocZgdoQMliO.dypzcNUPh42r4aJm.AaAE','user','ak_c6932d0057afcc70','2023-01-25 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$eIxHBENdP/3WfMwEDYc9EG/MxM67sX4Xv5AfbJ6yyByhIblUfOCCL','user','ak_0326bcfa494e822e','2023-11-20 10:22:00',NULL);

