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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$roLERCKQlCo3RfwdXlfJL2gSgvx9uus4a58LT1tZrdCI3p2rF4RhH','admin','ak_aff9b7991446ae18','2023-12-24 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$VSLy2UqkU3n0AYqT6zBBeMy3DArWRI3Cd6OD.yziR/FPaRUb/ijly','admin','ak_d6fd054a96ae8a27','2023-10-17 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$kibUsBjSuwAnNppm/Q2MUkXC07xM/LZQnVNIYRBiPruUe8gaPuSV.','admin','ak_ddc6e83ba5012839','2023-08-13 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$fiCZKHxPMNihAkQdMJh34zfg.fBoxPLQkD8xtV4tqLxURCqmL5QF5','admin','ak_c0b2274b920870c5','2023-05-01 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$8dilkD3UEp010IWjEVvdrFUJwePFXUPp2PAn6awxEI.0OKlXDQlJv','user','ak_6d283fb1f4f438d7','2023-08-27 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=19658;

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


