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


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$Ae7WqyFTbHLHjJZFanrLGBXKXFTPvAivWIbvzAWzEVZIscUrKt3Fg','admin','ak_96b6f5de40be9086','2023-04-20 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$gu/jD7Fr8Zn2gITF9hIo8bAZkviX58rd02ciLc.Ba6Owof53K0PYs','user','ak_4113654ba263f7a1','2023-02-25 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$JUak2A8dfEPLZFMcMmQzGAkmSV3yVjuFe23QvivXasaNWLXS.3qWg','user','ak_197e4b1b42c9f9d9','2023-11-22 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$ekDJA0VdR.lRRwPxjdyM.43EKmzZkwhYaar8M4V4nuTrDZ3nyVNlf','user','ak_7bfda97e431732ed','2023-12-11 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$R8CaR5WGW8TeQ03TfHEVpL9eh9FB0dYfnXIRrEat85g.sPOwEXXup','user','ak_33d4b3b02b1245fb','2023-12-17 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$WNgKr6BITNbZL94zQce.FpE0sFIgO1rnOWjZQ1WUoOTUEEzuvHGCI','user','ak_87627451b864136c','2023-06-05 10:06: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=4266;

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


