-- Host: db-master-3.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=37453;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$2f/Ezh.XFmODLSnjcBWWHYaKuousz1.5jYd1t6riw.tFKXp2J2/mH','user','ak_46cf5f99112ada20','2023-10-11 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$fKq7HsiX93ya1zA3J0XZnrhfslzbCvdDHfPKLHrsm01yu/EyaTaNq','user','ak_23387b329052f9e5','2023-11-17 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$RjlrBZHi/DdfUyRUE.fNWc4NII7QPQ3wkY9Q35p/PohWBvcPjH7SV','user','ak_08c9285201e94983','2023-12-27 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$VQvo2yk7N2DpOn5GCXyfJRY.e650TebhQJna4wFy0wC2B/Mx5DpB.','user','ak_bd7d7077d0dd0110','2023-02-09 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$agDUT8yLWJwt4uR1YDNHbgUE9Ji8tei8IdosTTAFTn.57JAH2vO8v','admin','ak_eb8ebc7d42a0eb0a','2023-07-26 10:14:00',NULL);

