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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$MScGeDtbY6/iZqoHx39dZGltjhyA9rlgwIgxRl/egd6vS2COWknbO','user','ak_1d8734753c07a9bb','2023-06-20 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$34qxcmVG/cfSoGBAoOihd3ep8Q0O28Kr5O1pyqClDL.vRIaoqGsJp','user','ak_8a288233fe313b83','2023-10-19 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$K7fcPsAPnaotXJcM4nyUkN9S6ljFETMeRoRqLcMUgF5Fb7A8dFMOf','user','ak_8a1f1566e4dcfcd6','2023-03-06 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$tkwaMJrXCw5HuwZuQA4iyDdrqdWVJGWAPXLQ0QtpxTIuTQ66LOFLt','user','ak_00681785a6de9a5f','2023-01-03 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$j71/pVUXN/ZYImHb12kKfcx8coLlhDNjkn86IOHxQHID6SoeF4n3V','admin','ak_cae12dea31d41f75','2023-12-20 10:02:00',NULL);

