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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$pAhutmOxCZnanD0mZK820yWQNqqFKHhaJcDRppoQHK7wHrzqcEO9y','user','ak_c5826299fbd9fa10','2023-03-15 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$006i6lmFZ7VzXTkRI6HckRHgZKOIvRvO6nMSpZmQQ3tmfOTQ8vJH4','admin','ak_02481c124cc60eaf','2023-12-02 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$ELqePD5xPDbshewVDF87nC5Cd1uqe.wTH6DwKJ/341C9ZnODEvqHM','user','ak_6ec90237f2e93ca7','2023-10-09 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$qY3nkopzjgvecc2ZiPAfF2MB78sKOedWjapLzlxfHcPoHMDAZQG.O','admin','ak_3a915a0feab0d761','2023-07-16 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$TsDuxk97nU3v/gxPlKSy0cNXKMcXscG.yfBrWZWI89sZ5f9pxSTKs','admin','ak_b41797ef22d88672','2023-04-17 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$pd6I2NMA8ze/9GrM9zsDSmUivhexM9gAFy7Es4Ru2SnMrTTcSE6f6','user','ak_1ed9eb638310c31c','2023-02-20 10:07:00',NULL);

