-- Host: db-master-1.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$qPupFyEz.WcY63fIaRNlPO4PSDvW8h/wxQ7Y9YaGkwuHtuQ6QqQmD','user','ak_9ff74ed85d1e3a7c','2023-04-03 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$g7xAU.1D8er4JHoPRMXFVwsAFtWJIUEIwnY/X3RNctmc.hb8euKz0','user','ak_f9d82c7a113e84f6','2023-05-27 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$Hj2W8XnL077EsN54pQMkheNgOHLUzevXengdow1G7L0qFYvZEIVEX','user','ak_7f4491feff5fb9c7','2023-06-28 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$Zg9ssanz9KrAIOLWKnZ8SIlVoe4FoTxCfWxCdWFyC6Wv3U0dbbowg','user','ak_6b1310b0ad90206d','2023-08-08 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$qKZFLPfwGm46apNye2cMRt5IHlpuhesjoROPUK3dh8nFFP0.eVkBU','admin','ak_798ce19255d735fc','2023-04-25 10:14:00',NULL);

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

--
-- Dumping data for table `sessions`
--


