-- Host: db-master-5.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=37458;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$qwrbzw5pSE1U4swU5SFFrScfgoMml4sjvPU/wwKgLb7YxJi.4VgWk','user','ak_496f8bd565d985a1','2023-05-23 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$HJPywcJglV1E1ucW2aT1eB2Hq5VFiY9tTB.jsF9Nvyhy6MeTXxq8i','admin','ak_d84dde4f052830f8','2023-11-03 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$0/LEEp2gcjRGgermFCYSkZnRWOC60mzdChOWm7mGr0QZwjljF6kuf','user','ak_6013766ac1adb8f0','2023-05-25 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$Pl24CQmGfdOvDyrWTb7TmLZq3F4XuZL/9cICyk2adLB1LD5xqIhow','user','ak_2f40da484a731ddd','2023-10-28 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$pm4b6PKK8uZVt7CbBFQ93DuwTqzTv8H4TF/ix7WmstXtVuZb1.hbk','user','ak_35b44fbcd9b42fe4','2023-12-20 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$xAABLHIb5ACRXJ1LMsLWNM5ZBRDgoF7yxGHOFB.uMJ1/KE59DPP1l','user','ak_f522a994bc58e1f2','2023-09-13 10:09:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@company.com','$2b$12$pUSh7HSE8gyV1nFxn2qamZs8QmBHTaIqEvBknm2.bqxo8MCOl18gL','admin','ak_adf90619b603e041','2023-10-17 10:14: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=29748;

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


