-- Host: db-master-5.internal    Database: main_app


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

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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$IaNx4gdkIUq0YHfHm6r9jWCv2Ee8ZP3VzIZd8wUaq1zXzv9OcYs2S','user','ak_9b2c529a284aa9cc','2023-10-03 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$LruiO987zvLc.q80YFXbIY0WHIP/yYnyzvjirpfj0rdZKoXxwRbRI','user','ak_88f872d7232db39e','2023-11-28 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$Gr9uBC7hGQYKs0Gwf8mBJtkfgSJNFNUbXHW9JPt7XqA0EnFhNB0lp','user','ak_9c05bc7a40eb5929','2023-02-10 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$97SpJIxenJP6vqHn4srp5HTiDkYj5cyAx1DLzIuSYPfl8p1jtFUEb','user','ak_e6f76e8452682259','2023-10-21 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$dU7jQ.Chk3gXImL.bhPNbR9SR3QL26F9tg65eSlKQZIn4/q57sv32','admin','ak_fd4721cded2617ae','2023-08-01 10:10:00',NULL);

