-- Host: db-master-0.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=33517;

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$m1iy7uZUvoJfH9BK/Udz5e/kxC7nACgUkYEmlMtxfVs516wEKeOUL','user','ak_5f8b39105a2be381','2023-10-13 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$cBEn5NZ2e9e6kY6nRn/uhy6fwa/v1.tCSvIjp5vuUpCI8R53MBRuF','admin','ak_eae7f37df9c7c786','2023-05-14 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$YYaBpNNgRmvkfARbwzeHoa5enRh2HvkOFjHPaUMcRR0cuJQ0AszN3','admin','ak_db1e23213f4fa0db','2023-05-03 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$zAoIPsJAJGIgyTGjdV9acQVqXj4.FprXMAMP.RAdVZ14howmpR4Ac','user','ak_afd139965d2efe81','2023-01-21 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$h0jj50hiRzk1Zevlet43W71o3XnqLTGEGgV1KDcPdwVstjJzLdvdw','user','ak_2cc63c8fe37aee68','2023-01-12 10:00:00',NULL);

