-- Host: db-master-2.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$dPdpvWg4GBb3TT8kY10iwflJ0S.dosGl9kBhB.3KNBAi5AKN1AR2L','admin','ak_ddee47466e1247db','2023-03-21 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$5kXAfBK1xysKmRjrcok6J0EcgZGZ9trco7ntoewpM0nvvGkyjOdZQ','user','ak_8aee443b1bc13ae1','2023-06-27 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$HeLojBXocJLTebtoqnOCOyMPQKmhY3c/jkf6t3MvJr6ej7YBaURJh','user','ak_e1d31d14433e51bc','2023-01-18 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$DIVo//ZLjAQf0ryf6ZxlTLDkFN1WR1ifsiHccPNSv7pcf6SM3Up.T','admin','ak_a925cc3402230396','2023-01-28 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$vPFVhm12CvXIyewemlQCDftfyHj702AQrtvbxF/eNGlMzElu4SnZm','user','ak_44bd10fbf71e71b5','2023-03-12 10:09:00',NULL);

