-- Host: db-master-2.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=6416;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$Gh4xURzfSAZ6LCVbfl01xvOWX3bXCMY4r75M8Cbt6DQFDDDEGsfrx','admin','ak_3c61f8e17a5cb8bb','2023-08-11 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$yKtqILmitNTTYrgfoo4d72SHOJZjKnZSFfWdoveGg2WQ58O2yTAYG','user','ak_97258642cfd6fe91','2023-01-08 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$kusKihh5kTXkMSsR87ndCyWU/C2MQmb/7gG31VWQjc20g.zVlKgNR','user','ak_e681ed6616935ada','2023-08-04 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$dwMlMrO0A6732PmyMxBx3iE.sByywglH4fvWORESilsmrOlaL.1CQ','user','ak_f9a38fd61f81c789','2023-06-22 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$5u.PW6oC87SXrMVrZbJJOMpjwn5X72fgh7G4y9fDw0C73joaRO8Mo','admin','ak_73ca31080c2c8b01','2023-03-09 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$whP5iNh5wKOT0dilpVWAc79YqSe60o1vvyB7en/aw6efpOv52CVDV','user','ak_5cf4f9e191b08f1c','2023-07-23 10:03:00',NULL);
INSERT INTO `users` VALUES (7,'admin@corp.net','$2b$12$NzW0ILPp8El/aMX1906whTtqCHo0r5KAWEHO476yIswHs37EHC37q','user','ak_4746ad8885f65826','2023-08-09 10:09:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=2795;

--
-- Dumping data for table `products`
--


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

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


