-- Host: db-master-5.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=25412;

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$XwPr3BueYdcH1LQsIzWYoSVhEsiz7kCv/i9aKJ/gyGlFyv4GFDj0l','user','ak_ae4e724a9a49935a','2023-06-05 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$h9jbugR.C4nuZHvtCRw/bFvtdUhkhI0zYSn9sVeal3Lrq.LKZJZiT','admin','ak_5457405728e49294','2023-01-26 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$cjdVY9VhCU6HsEW8wWva658jEQGxiRhFO0JwLyGC0aroZzrxRFlkW','user','ak_9491768bd52b6aba','2023-03-04 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$YZvv5sXEo8JD8ui9qnZCCFKObvbJ5/FFUKLgLtcjivCjOSiORxmje','admin','ak_5c62ac0677bca2a2','2023-12-18 10:10:00',NULL);

