-- Host: db-master-0.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$tYqNcBNzuJLYfvGfDhCik760FIhlWXdN03vPE55GoDTN.P65ycG65','user','ak_138ec12d6ba1663a','2023-04-28 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$E9mAXKBgQpldSnfG7CCztziqYe5WbMMneTEwzpkV2E2AZC90f6HMb','admin','ak_e341a37cd8db39c2','2023-04-15 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$m0FBcEfJoTbKel0pnB2OUGGNIa3VqFEsR6QRogPA4p7uYvGGYpOsW','admin','ak_f58fa61bd5321caa','2023-10-11 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$rYssy3mibVsFBuINBna/XQt2LkqCzTYLZBpfT7OEE4cc/Gel/WyTP','user','ak_9d259dfe03bdcffe','2023-02-14 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$nNG5C/JO8FUL07xnUDwX9FOSQNu2SeQtzIQhESVbGbxvDjgBDt1uP','user','ak_b7c2973567d650a6','2023-10-23 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$57HzoiOxNqlBIkrSh.yulsxmpIU2rF2IZDlL2dBFtsfWfAMqaiTRw','user','ak_d15bef0a3480e3c5','2023-04-26 10:22: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=5394;

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


