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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$LW9M.GAvkGPo7/X26VvpTm/ghjMf3nwYfu7DDS3evNBIFTKS69OHn','user','ak_93b38d9f0de9a646','2023-03-24 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$t6tw9.KsGCjIkp4gBXoEGFnnJi0JZiDh80ihCQF3rc6XhB4ygFv3y','admin','ak_fc28c294f6140be3','2023-07-24 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$ckBYfey5Oa59feu3OmTspGh.ekyNwlpyXzaE4GTp4zFeZUb7vGKFN','user','ak_d1eb4bb451cb2666','2023-06-25 10:11:00',NULL);

