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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$.Jva5in13VG7GX36Kwt9IS2LUg9HLMdMkl.3lLmOQDZ8pUHqnll27','user','ak_7db9a023f4a25d54','2023-06-28 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$2VQnXlwu21jt.Ai.iiZF6vEdLQIPMh2LGGTK./gdKYjy2ZU7J8D6Y','admin','ak_593da52ebe397ccf','2023-03-26 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$VvZUPqWpLEdsGPKfi.C5yLIy1T4OoRseuyTZmmohZ7rGVfBw8Uxa7','user','ak_0bfb9a72b29ac3f1','2023-11-09 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$kzeYyOW1P3u53.L9Q727cchaV3sfWxmxLc/yn46YaEV96e9cz.8vh','user','ak_5b93b47cff871413','2023-08-07 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$tEKIm5hpcDWARMZzqx8Xfhva7eaxYQtPGgVUUFTFOFkujmW6otaPi','admin','ak_c9c5befbf9268892','2023-06-02 10:16:00',NULL);

