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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$3ntiR/TDBG5LimmSrAyu2d.lPTZWdRYUB.nqw2ByJsq3eUTc3bd8B','admin','ak_240025aa996a60ee','2023-12-17 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$c2nLhFUatHO17cs/l06QbI40h7cquffKAgRgQAnmlIE7xsTzWN3Yj','user','ak_042de10740db04da','2023-08-28 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$/5qIN40DkOcTuFvi4KkcySG4AiVO43zpxiSDYgV7CKQZ5w3tdWxAC','user','ak_90bf7ebc2980561f','2023-03-19 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$1bNMgj/SCwGpOqjr9wJchxZ5iA9kIR7lJZEbFEUrOSny.pexq9VeD','user','ak_6def317f6ec09b3e','2023-07-13 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=33156;

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


