-- Host: db-master-4.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=3900;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$rSXXPvp7qQGgiAUsZ8p1mrHTunnF13APi1xNcFDfxw61vV2dhTdda','admin','ak_ba82a7e1b671f799','2023-05-08 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$kGvGqTu4FljMDFb1dzfZ9Y/l9IgoWOGLtxGi/LGGFGW1A0mZpNg2K','user','ak_dd1ca85f493ccd2c','2023-09-24 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$v.31GKj7WDWwaoYeS6cfJUnln6QyaNwDpu7tUkUy0lliJz5T1DS.w','admin','ak_0ff9003f643b7222','2023-12-21 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$g6/UOiDxiF91rDHw.Ju0oLZnlWK0UDJgcoAF/48UiGZJboOcEDgPf','user','ak_ad8772f7643739a4','2023-11-04 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$chbF9.rfwJp8BdCnHUdg01wH8hlHV3RNXIHgxrG/Ayg/ImKpfdqIY','admin','ak_0cc7bbf97ad555d4','2023-09-23 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$WWYrS9sb7UmNfGSOQs76.PAa4NYbc3bAtocZtqGQA5hFdBLzPnRUW','user','ak_4874ca84c818c608','2023-08-13 10:01:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=41255;

--
-- Dumping data for table `sessions`
--


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

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


