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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$KnVZxVffzh/E4WYM3hcUCa59UaUlRVjFgM2S6CJpLLZVcNxd7AtZd','user','ak_682eec023d3d187c','2023-06-04 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$/J.pp2jyXA2JQjDux5E9CTLbAY2At3cKcGMgr6Go56EiAmcaHMrhI','admin','ak_1729e59a1b62e27f','2023-10-23 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$U1MFEmZyfXxRAMierczX60eJ2H4HsZg6rwfmPWB2SvFokv09qmgkF','admin','ak_e7065af6db9ef77d','2023-04-11 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$UCB718y7IPQpT17qX1SNPoEdGPNjHtEw31ywu/RBTLVHirqZcthUy','user','ak_e01f17f2564b688d','2023-02-16 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$bcYQyXb0BwDgQ6JFapPh0slPT824zw6Vxyu92HEOZCkjuP434twnV','admin','ak_91353fae66ca9306','2023-10-23 10:21: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=18585;

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


