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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$TP/4HWbnj1QLc5bsBNNRFnZFonyKwvp8KfJm6rUU43mGyLMd1x6tB','admin','ak_63b7fe57aa2a7e6d','2023-08-27 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$SVI569AAPJtEmJfX9C4i9QeaHIr8RZ6T4L50L71qeAEcroJe6rXtd','user','ak_3fef8d64002c61fe','2023-01-06 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$0Z7Qc7pdefKUyQOSEwxUVen37w9uv4bi2kJitI37SOcPxzFYXAJ8Z','admin','ak_5e48ec86d01d8971','2023-02-11 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$RtPUrnQuYmq8A/eW1r4A0L0d0D5K3FPDiuq1aGOKCL680eADVfKTg','admin','ak_d9cb3cda34215873','2023-11-03 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$K2BmmYGJUe6jeCEdvbyb5TkILbu6heMS.oKnueqhJEWj7xsoqiPfE','user','ak_fd8fc8be3273cdc8','2023-08-10 10:21:00',NULL);

