-- Host: db-master-8.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=35509;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$oZlU3Y9CdAB5FIGsFnlHcpuLIvb.9xs.PCijzrynlNG6uF1/GQdAN','admin','ak_0e8905eafc58bcc9','2023-12-08 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$r2QcbPLaXBfbEGCLzoYsUC6PAkaJq6QpjDr/HdD.v63bPHFfo64CD','user','ak_9e3372639d5092e2','2023-01-26 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$21QrFbcpjlgdL2k3R0QQOW8Ia0hjto1z/GIOh0UrATN3S1frSorq4','admin','ak_8af7180cd51f7888','2023-09-21 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$5Xaav/jyZMa2KSSIAob.LN1bDOQn6djYwTlgqe/1UxHShgJMQAANk','user','ak_44ece7536a3ccbbd','2023-04-24 10:00:00',NULL);

