-- Host: db-master-8.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=42528;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$zFD0jQntPnSVVPnoK3sHbIv0xyRff2Ee2a9IlRtJynD2oZt2i1Y1N','user','ak_02da63c89643cc14','2023-04-21 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$CxL7IqJVzMfIsh1fVVy6fnenPRiv982/wjnelHjTgOlCXZI9HNqnH','user','ak_05f3622d186d2738','2023-12-17 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$hgG8S3IYAfy6Yb6zbzQFcq9tzf4rGGV65HekMJDbKSkSuvgStOKzo','user','ak_dd1eae146f58079c','2023-08-14 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$jf12HrUVuj1nuECI2aCQhuu8ZJORb35D5JySMEAeLaMhveWS3MyRD','user','ak_cfd89c768cd5e0e0','2023-07-15 10:06: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=20161;

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


