-- Host: db-master-9.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=44302;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$VqLpXNYq.HzQTmlDJ6v4lr5SN//b8LHrrOBOoDT7jbAjH238F4rgT','user','ak_bdab5e51c5767e9e','2023-07-18 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$M/GloLv5iKp1fMTL9vVDVwIa5zB9at680zn6z4db5lQPDwCk23U.K','user','ak_4de8d83f28d02c7c','2023-09-12 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$y798vvn7wEDCFHpF3OkBuV/ZCiWaAgi2./s7sZ9ThhMqgAM4cbv1q','admin','ak_87688f2a81735e95','2023-07-04 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$tRD4R4WGbKYRoXWxg4.F9jCtFJgcW49Qqa6J7o/4XgOrjRM5TaL8f','admin','ak_bfa675b0deac5714','2023-02-07 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$JL3v9.RnVPmiDlLt3uwYaDxrHXOqZLXqK3MaiaBW.govLWRUTuFp8','user','ak_5c2d08039ef2646e','2023-05-21 10:22:00',NULL);

