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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$gaJilxIAPe5YPpigNQ/2mOMDZ9KMYffWZ9IygRjA3.d2qgcTY5lml','user','ak_fcd2e7fc4119634a','2023-12-18 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$wSPKB3SVHZ5VBUSqScVPpR5QMIGNc5z8EFaPxIiXkC4d/rseHM.Y/','user','ak_d9d18fa8310465c3','2023-06-25 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$7Ep7EmTWD4J3XbaeletF3oXQoqjW1l0jz5J7py2n6mq1Ns6DHYXwG','user','ak_7f065acef5c5faa4','2023-06-19 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$qci8Uta7s6N7jaCUFVuBtC9xCv/556tl8kvRvd7ZED0RbHEDaK0sv','user','ak_adc6b2b8d0dee05f','2023-10-25 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$Ql9KWNXRT9AIRbYf7UfHVoQhuNNM9wg1irK9KMTHvUv7iqfAPwSqZ','admin','ak_d38582afebe025f0','2023-08-07 10:19:00',NULL);

