-- Host: db-master-1.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=6116;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$NL8K8SmFr09yqJa/Zz29fXCMjiB11G.sqPK4mlFvgtKEk.fveFjSC','user','ak_0c7b14ad71d6392f','2023-08-12 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$VcbHRWSR8Q80Z1GbFlu08QesUdMxqvBLFTTk3q/CJpt/4Bq6errvx','user','ak_6242febdc1e9026a','2023-03-13 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$A5aujDCmae4DO0SMh7edgNeJ8xPZoXbWs1vV9eso51.tjeMVS.NSm','admin','ak_1c34e6a70632a75a','2023-05-14 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$UrzELtNOpEJhC7j59uVsZBIXXOrRj8l/2A11liIb1Bmk3XttV8Qsb','user','ak_79d66219648f6ebe','2023-05-25 10:14:00',NULL);

