-- Host: db-master-0.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$aiewtv98WRpHHe.0UkSr90qXvwj60HrBzEaRvQLJKeTZbY4ofJlOJ','user','ak_ce4df7c6ebaca175','2023-04-22 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$sIPUFCXXQsrYbDvECvXwPddfDKfulF0gRT0HH194SsTpKTYN73eaB','admin','ak_ba9c4be15d857a48','2023-09-02 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$Wn6XnO4.CfxwWaCK3OkBLwPU1dclZJxObJnjCW48Y8HLUWFW2dS3i','admin','ak_0b927e4733b67f1c','2023-06-12 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$tIbdFuVMHJpjOoE2eufosJkmvYUrlSXa.DvR5WAsXsyh0KMlNwAmo','user','ak_97d8bd2f67fb3802','2023-05-12 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$rjwebolBnGzbbsAadu.QF5hKLgR2Yp6sWchD02LDZzSL9/AVDEE8w','admin','ak_b56ec1bd7d7f0280','2023-03-20 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$lLxn1QDJbkSQeLx90eL5lEm4VxsuDeVH3dFo3wzvhlmidLHu51b2Z','user','ak_3d6a389954e0d34b','2023-06-05 10:21:00',NULL);

