-- Host: db-master-6.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=28764;

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$BoZTOsEEmHdxUjppOznLPblKBsABdlUb5mJU5s.f58H1LAy1sJcNf','admin','ak_2eb7d521c1dfca9f','2023-03-21 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$WfLATSRzcN.8IWIo1/zfjscF2gpj9omvRQNFNH9iOgjlnxAD.1wHv','user','ak_db7b85df962e8a6f','2023-09-21 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$twq9rDpdZsgwGL1U/rl/JJZ/VHplVgBY1/373Bc8FUfRW3GmqWOqD','user','ak_e4bf6588d089dd52','2023-04-27 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$qSTBO4FgbzxJOJPqzDNGnX/1NfMNplZEpZsOL2PiWz8mGvoYqBOKq','user','ak_19226ae10725a8ac','2023-10-19 10:02:00',NULL);

