-- Host: db-master-1.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=45676;

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$MIMbRGW/ybytEs3FFM8VQNpEKVfr66MjcWBpN5325NnVMl90nEzSQ','admin','ak_921dae4340ad2979','2023-12-13 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$pQQa7RC/8OXtZ6WffqjDorIlCuMGUMFnqJAVwUGHWtaNf9mSh0Dpn','user','ak_238d639d8c929c87','2023-02-06 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$IvWtUwcLqXbSMJpiyfOCgI2YJa/MbPXRGzxImMFRekAWEXDKVTtcN','user','ak_3ea59aa2953a5fe6','2023-03-09 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$EcWjScQTM5t9gncfh//rieLyg12pc7ePskPb37LO58F0.Y34zLPjV','user','ak_0483b3cefa458e46','2023-03-24 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$Qn7hL1qIc4BLy83lotm.I4Rt8UGDV0b3upvq/ACSAIurF.vmm.Pc2','user','ak_cd1f08930e6bf323','2023-07-07 10:06:00',NULL);

