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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$5liIbANjCktyoFgKuhv5rB3tnIwxOLwCvSX2TX10CnERuDoyksbzE','user','ak_96351c6f6202cb92','2023-10-27 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$AZdjpJSB5a6KrIwHuN522hIVpOJ7AjsjHRdwL3MrGGOgg6n6TEnys','admin','ak_feb0164bd354dab5','2023-06-28 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$QGMKyvfHhm0gglpJ6KZWpd/.kURkbc7496ovshm.LEn7MLJ9S.unS','user','ak_bb9b7cf857d02bcb','2023-11-23 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$GtciMq0JvkgCodXeor1xOHGjFVb0/AqM1XVFH4GKedCA7hqWWuBMD','user','ak_36d20d538b5ae8f0','2023-09-09 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$gqnchQwrFbbPwRMOlPV7vAeBcBFhLMQU2zQuxWsrwA.Fy8Vh9.eXo','admin','ak_95ae67fc2907e78d','2023-10-05 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$RjKdmGRiinTMUKFbia/Jl2zRIPJjp0zn.ORr0Qfs5aIr7YDSeaJN9','user','ak_db03c7ed9dcad0d9','2023-12-19 10:03:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@company.com','$2b$12$BC2EYhjcZr8oZQsfWtqkPnYZ/CTGJvZUCxGdqxJBZIMgxxfhGjj8V','admin','ak_5360799cf0172280','2023-12-17 10:02: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=32937;

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


