-- Host: db-master-2.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=24876;

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$4SXoAhAGX0Ch0GJZTtHtKlGh4Kegvv/XSBKjoL2qGyY6fTgEvhhA1','user','ak_4a49e175186b599a','2023-08-08 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$8zX0jK0pp.m255WAY2evbYvmLHjE9gwBuZSY2DQC4Lh5KbZ/5olZe','user','ak_b4dc0cd673496c34','2023-09-10 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$Jsr.7FMkSeluP.NQIBfyqVHrYAeb14keCYH6igZlY9p5qp3mNwsEy','user','ak_903da9b4ab8ece31','2023-07-18 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$od3XWqTph9gIN7Oc/jP527Svc/30LwHWxsegL7ryCBNrLqiiZZLyM','user','ak_a446987490a5ad6e','2023-01-18 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$YnzyLeGmFv1MAyGArc/V78PYXglfLz5EL7oJhU6weP7rCPLILzy30','user','ak_0fd9a7a04aed60b7','2023-11-26 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$Y9qB0V3Hl1ECZILjUm9OYnk04SJO71nvqfjJzbComCbVwJRT1Xp.O','admin','ak_505565d173d489eb','2023-08-19 10:07:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@company.com','$2b$12$gbRbm9qpSDPfUlt4Xa7Urpu9ny9Yw4urdc9gHbEI76ijr3Ico1dc2','admin','ak_05f6cf809096c3ac','2023-11-01 10:23: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=14619;

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


