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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$JQjUDZrQl3IMGUgmekMUNndGs30cPKMEAcX3lqarUwiyUn2zNKHgG','admin','ak_8f0fc25083e7d0d9','2023-10-19 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$xzs5jNR8PnxM8gDtzIJk3zKwiOnl.jDyM18ux24NKsVNJOBgivLLz','user','ak_d3fa2585099ebed1','2023-04-14 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$FyLXZ7qToEEfYs.VZ01bpovOlGuewOONGeUGD.hMep7ArCH82IAGE','user','ak_27da519c26ae8877','2023-07-24 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$5xpALtsxN863VKZuJq9DWHrFiPDJdVK1cLSctXEQWBoPoXg7a0Oqu','user','ak_536cd357a408ebbf','2023-06-12 10:00:00',NULL);

