-- Host: db-master-6.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=48437;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$1lXpSswzKjQKhvbeX8ghwWUUm120v8EmVaDR/fa7l4uPlL3J7BDA5','user','ak_ed8e14cfadf20675','2023-06-05 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$bLRzrb7IR63rouYMAR5FIJyQTn2xAVRUTVA1Kcrkve0dfA/yFf59j','user','ak_4da38769cd6ad5c6','2023-11-11 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$4o9cM.1hN8za4xYA7oB7thVOixcDgvPoOLk3t9Gz9lZ5G8gvEW9ky','user','ak_a7db37b48978f276','2023-01-13 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$M3xMqBLZmGd9JUMv7vSQKX7kCcbtp96achZoKBFzBLtZTuSRF.z89','admin','ak_91054a19890d96f1','2023-07-16 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$zrC.fQ/caFxJamI/bwI.uJyrTvt1FrqIYsWSPYRYH1VZY9nXQeGhU','admin','ak_b6d72bedab34c88e','2023-08-01 10:20: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=8576;

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


