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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$j0CwZ/wxXf6tNf1aB2/EDLEMTbtNMAL.r1PxHa3PA6FFJbVgDz2l6','user','ak_0a1333c332a52749','2023-11-09 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$zpB/pIL6/mvJP8EZI1Q6jJfePdmQpmb3VZmoGwkJJgpvvLztytcmw','user','ak_04c027b0e68ee183','2023-12-21 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$CiGyGGwSouZyuJkfQvWAOj./G6pgxjsMPfMdRpbojma66hm0VX6T.','user','ak_44fa7eb7aab55c1e','2023-06-10 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$5TL5L3P9b1hXGSWwvG.JH78vJfHTW3r7fgt9FPzn4TgmBDMB1dGtO','user','ak_9a57c9ce1e378bab','2023-04-13 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$28PCfsECLdI/PqlAiiw3V8ZwmV0MC4GhbSfXcCHUxtNp2rWDi8jSD','user','ak_298dcb48347c4a0b','2023-03-10 10:06:00',NULL);

