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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$2G3HAhTMbdcU6c7t6oyUMBAqsNxB7FAbfUHACpVPrvx5UhKopW7jH','user','ak_d8c06857408e1f74','2023-01-28 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$cPqw0kiPkGnmVY1pVgdC3wNpWg0NqPJrbn9VsetgumBT47moYROxp','admin','ak_e0faecc125bfa6c3','2023-01-22 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$ERBV1POVGMStvI9k.5DLvplEYrJNlsZujJtc88fzIBj5VhU4/DbyS','user','ak_978c2424ec12ce8d','2023-01-05 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$cXWl9vZ4Qjh5aOwKwfTYLGpMuwQl69uxe6.C1r9iE8TDcKE7L8AkG','admin','ak_f89df243d73825b2','2023-12-08 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$BmbAhPgrnIGp/Z/.MC9yk0RgfWZrLpUTnO0VW0suX5E6spQEjNPkk','user','ak_21ca4143829dc751','2023-05-03 10:14:00',NULL);

