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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$VA0qWob.VqQmiZpSyvF8ghUAxAeBMAM4NUINcVjZaM2glyRilMGSK','user','ak_f3c20458858c10ed','2023-04-03 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$1ev2nbb4iZ7SwNWC61kRZC/iDbpsfy1zB0SBK8jNZH6NiTDhbP73T','admin','ak_e8a4c8e11a212251','2023-11-09 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$27q6g1nxONCLYPnTctuhIX7dIOTMIcW.zU6u4iRgPthS9UYrKOb3O','user','ak_b335c94417d23787','2023-01-01 10:09:00',NULL);

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

--
-- Dumping data for table `sessions`
--


