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

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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$OstMQr1r2lXSECTIlpskFMil9R3j0kAZtVoPVuX.ZUHwE15zONk7A','user','ak_7758c09e6bbcc0a8','2023-01-20 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$/wkhX13VigytDfEaMZELV4vRNG33LinsbmD8Ywa7RZAAeGwG34Nr.','user','ak_6c6b2e5121cafc8a','2023-11-27 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$I44FW3DbRJmQXNil2BwBrhM/H91T2sHkG4wi5KQkgXl.Udp8oBWqm','user','ak_1408e52cf4a5d903','2023-02-02 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$GFHB8mrohdSaTNvAwAqg9vtkE1NVQIcgSWfBP41jgJmbStd7Qw7dY','admin','ak_1c36ac21560a4735','2023-06-02 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$j8gA7TTuIrnqPQuotExcu9CRY1q1hp2ZSTHWDaDL70Pyg8G4oWRnb','user','ak_926367e9d72d301c','2023-05-22 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$OaigXR68/PbQZgW4m3juZVJ.OZWTiXrpOEYCiZf1NdsK1QuXI43Fk','user','ak_8495f16566e0eaaf','2023-02-14 10:09:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@example.org','$2b$12$9doGzp11RZJBIFRw3aW7NTHqkyqkxC6WVwII1dXebY64Rp1DYaPEy','user','ak_c06a858b89d32bef','2023-05-23 10:14:00',NULL);

