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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$VQKcTwLc0AprMKbFxecLzjuHZDgfgNgSSKxxjHqZuhZJbjUGZM4bw','admin','ak_690509535ddc6b75','2023-03-08 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$mbkmGDuFK91gg.AbScE8hMNiyInT08xk8gxEhkOpaBcmirnccK4Iy','admin','ak_92d7dd01d23b4f0d','2023-10-28 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$pCL81n18/zQacUzJ9eVdYoGhb0MMeI6bIB9id/TzzjoFiy//uwQ9x','user','ak_80cc40edf6fab040','2023-06-18 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$FCdc7tVFe00xIXaEaGDNYyVrpO69Z3XiGiZn3PXjebWFMq8aldOdO','admin','ak_01ab60b7f9662140','2023-02-25 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$WaDUhadvWOWggsx6zw6oAUIvGUKL0HDfjxAL2GSL03Z0rczMI497b','user','ak_6556ac60db1f3455','2023-05-21 10:20:00',NULL);

