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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$oActOR2VqpBKxdKgG9qxSWSXSuIbKefVu5EhsQzP0.Wm4SYj5G2Fw','user','ak_91465f4f882d42e8','2023-01-28 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$jL4r8s4H6n8ADAVNukyBDQ00kCXcbpmVnYJjY3n1z2T8f7NtTVZXH','user','ak_b981910ed4b42521','2023-01-18 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$E5m/1RDTQz9woU9otKnp/hs.g8iqUgDry12VTFan4IUad.L8GZFVg','user','ak_f768ed0f5d3fa14a','2023-12-23 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$C9qxW4YKVuTs0c4L0LVPI0QDaPTUP3ucbMYVWxt4F2Zyb6yYzmLtw','user','ak_b53c8fb057d66291','2023-08-18 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$vgOfBiVRh/kh2IOBQGf1swbGKWk4VmkVHMok9DsySoaqtzrIVUdiN','user','ak_8cf14fe76c049e51','2023-05-27 10:18:00',NULL);

