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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$56AiATI5Rk.MSEVRgyQ0bFhmWS5HWszv8..SQfKqU7w0KPpNS3gBj','user','ak_1c6eaaa53de02786','2023-02-26 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$wS17cFsaNyxOAdj9n..cB8fkqMZH1WFxK6SOx1SdlKY8xpURRs466','user','ak_17069e97ea61dbdb','2023-11-09 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$4grw9b/p6kqoPnUU7rdnqQH/q3lvHEqWvz34hNlBuKi26STSxD3ii','admin','ak_9af6ed4ba6c27efd','2023-07-28 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$BmNFgqrfiaaMrcjv5tmpR2WztmjJnlCjD5sWEMo7ckz9MHC76tVSh','admin','ak_345f7615c9a733a8','2023-12-13 10:09: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=2983;

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


