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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=30623;

--
-- Dumping data for table `audit_log`
--


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$T2kpRheUKjDhBPdtAK.z8reQnQc9vt9W6.Jn9iKXNVFXyz7Gbn/Ar','admin','ak_7b8f3571f421e545','2023-12-06 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$mbDUl6eK0QU.92y2wtT7hPIoafpTYCFrzPHhL9UweR5xBxTu8njhz','user','ak_0e8d49a20b80c48a','2023-09-22 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$F3MBtgwyxhCqO6LLpHukgUWJOadcSyCAN/jOkTigkAUg3FZIVa1s0','user','ak_57c9c95a6a6005d4','2023-10-08 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$plIdK85ic6dRrond0eHsn5gRyW4XxRw/VtoqAH62LzyaPjecCvahY','user','ak_fdb68aa8a6becfbd','2023-06-27 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$EtcpDZrWba0MhkCeFrl7eZ.r9I9Z7WNupF94x7CyBoQPaSMp2gKpf','admin','ak_88d3a6f4288b7780','2023-11-21 10:17:00',NULL);

