-- Host: db-master-9.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=24945;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$VkVu3zvlpXSVicS/LrbFgdxa62PPMtGQdQ577YLanoj4Eq9FeNPLe','user','ak_f7f446fc5c536c8b','2023-02-27 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$yt8AZ55FXy9Qr3tf3uoUb1ANjAT69Wmy5sw/7NzRM0ASAdDBw7AH5','user','ak_23fc8fc8f19beab6','2023-03-09 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$perHgj6G/5zhnTnCw0bVAS3gxo5ZMNeXWKKx8d1w3cIIjYCn1onr4','user','ak_5f33dbdf3e0bc70f','2023-07-10 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$kXJMnQEkNz89bgXqgAfRhFebx6mgkpgI1F/JcO/kk8Pn5N.NrY5dG','user','ak_d506d67811f09058','2023-05-07 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$Kgo6vZ0hsAAU9GQ6l8d.pIhlK9.ijlwVuPVwDqKgvn7/Fixxhc9kX','user','ak_e6ad494035afc8d1','2023-11-15 10:21:00',NULL);

