-- Host: db-master-4.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=21126;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$t68k2io8LAIdpdxY9Ldu9bzzj9Ns/llQi3d5uD64STH6BjQUXuKtM','admin','ak_cb284d6b5c34a638','2023-06-04 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$KgyMp25mcH56fv8TjR3k9Wb7jNLFd43OB9yRY4sGizVt5sv/sHX/J','user','ak_38dc6cf53638638a','2023-12-11 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$fYdp/WDZ.QTHRLO4ozyBH2Ew1a43J9Dr25dRLkp.YbAlo/gQQV5.6','user','ak_c65d53fbc49d9d11','2023-03-10 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$gFTkihq2l42ELd9WYNJfGLyPO32yLXF18Mpwge31GS.qVCUIAejs7','user','ak_9538e6166952c3b9','2023-09-02 10:21: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=38060;

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


