-- Host: db-master-3.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$hqEdhTuNyJ195s6X5n3ArdVV/SVsSXxNKFSIWYfaDpUwusW2QvO4o','admin','ak_6d6bddcd4238e79c','2023-12-08 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$I3P3qdCvQU4r6gOMd.vrw1heM2mgIa1G1Yu5Z1Fj4ls7oED/yJSeg','user','ak_a9a5d2bd50631784','2023-07-03 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$H2tVpgb7pwKYz.z1JS2lPYj2HJcgqww521QmxrRzHjvjCbZjJQqEB','admin','ak_ecc4e5f87dfcceb8','2023-05-28 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$tOZYRL9jL6tsqZrCWCM.TRXkccPlUB8PnQJucjTlssHCz.cnEwvFi','user','ak_8ea580b6cb025d36','2023-12-15 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$OFVfI0xifd9fVkCf3pu61M.98zQPG6PFUIVcRVkOZCdNh/Cb2XMIr','user','ak_85b6082233b4e564','2023-07-10 10:03:00',NULL);

