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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$RQGjXKhFrhf6PNxlb8G4qv/WMeLb99iOys59Ql3phrp9EWRK66FxM','user','ak_10a7ac9505a11ee6','2023-07-20 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$0hsaHhlIP6t2kkuRaJon4nnvWDrgpHDarE47I1jVs5Jzl.9R2pUlk','admin','ak_ef4d3050d81c5c1a','2023-03-11 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$BTWrLZfOkrf9wx.9CUYFqOIrzNQEeUle93lZOPtQLbazTFzgbYweu','admin','ak_92558469d0fbf5ad','2023-08-12 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$j4r326H/Wy0iGK1sxtLuE7hsrShOo6UrBHtwYFYzI.Xb0O./O3dLD','admin','ak_74ca728c4ce5f178','2023-08-18 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$CpLAPjB8Ukvn37iNP8aQ/y4l8N7kq5gHudv2bH395meshrFxXwENe','user','ak_577906671b6c7ced','2023-11-21 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$QVaUSvdEPme/QqVZGyb9CwuF02deytzgk6CIN9ooojV8iHWv/zy5b','user','ak_b118249103835b1c','2023-07-04 10:16:00',NULL);

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

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

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


