-- Host: db-master-4.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=17622;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$bpHh1vGVtzUiT5.NdZN48qxJX6oDcm.ApAoQIwYgaAhul7GeR2bIy','user','ak_ea5941880c533974','2023-06-23 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$y9GCCw/84rtjhKb87L4qXbSe0xoDinISP8jQhE1SP8u8j37rDPGhi','admin','ak_df9f205ff7a3cf83','2023-10-22 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$l2Y6nnC8Yo45pZollbq3P/JvcU4GplEv8SpI8h26hnlRerBi5wAki','user','ak_304826c2464ec3ed','2023-09-18 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$WUmiGD7SLi/Vy9kJ/YP7mQNCTvwf7Glmunyir3hjOJIpv0/T6IDhS','user','ak_4421418e574624d0','2023-04-12 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$GxjoRdDbe0LVkbAjCJvSETc0jAppPNnYxLNHvbf8plBoBPyAgTIck','user','ak_63368ee94c91c7f6','2023-09-07 10:10:00',NULL);

