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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$qBMYDzW9ac8xpWYasxfji5WsLZ/44hDXObEU6/rAGzP6aJFuYmSCp','user','ak_f896d412478d8d69','2023-07-25 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$QXU4IGUhfvYa28Xj7FBaS80w8mmPx5uR9EtVRK/iSgEGLIRK/MwGR','user','ak_3af131dff1184ec7','2023-10-27 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$dV8k.jwDGJ2c566UuE0moKfdJDCFIC5XfRNyYrHVKS.o4YudmONEw','admin','ak_e681764557f22045','2023-03-20 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$f2nZYGhdMqfchE4dwwyolWpcOI29D98n0o.t6q9lvhF1V3AvSMfrO','user','ak_31e6d9ac4103a662','2023-04-08 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$Pg7nRNTtgWWp5C5rz6FKngSBMi3yFuT3JOYH8mkicUBaadohkucGv','user','ak_90661c670aca9892','2023-12-16 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$SXjGq5jgR.Wj1Y6DxKff8paPguhqUpwnEogPSDdv8E0j2QLbwyUaa','user','ak_c9505c682df520bf','2023-11-28 10:02:00',NULL);

