-- Host: db-master-5.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=8752;

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$xyQu67FVicjY0nCThha3.OmeY1SXFNJWPBWs1/oPf2whyxcCboXzT','admin','ak_95ef65ad966e8085','2023-01-05 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$Lq7Z8oH23UxL.R7xc4iUY0UiihiYOR7ygfStbEoyC7x0pjxV/r/SB','user','ak_d467037457201273','2023-02-16 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$wh9F3a1XLHwKEWUY.8VL2RirrRiwpbYOVI3TOauRTUr5nFFOVh0fu','user','ak_de4645ac090ad950','2023-12-17 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$ayH0kfVnfV3NGLtHytUKvG3yWn111U1AaAaZ3Qk4tqou1YLV0E/hz','admin','ak_0817428d54fcf046','2023-12-22 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$yPbScrcazPXsAJqyBqFNyIL9S833bBZDBlVqu4E9wcsYZvOoRJprE','user','ak_b1f33fa9ef5ee211','2023-09-23 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$.191x6BDZokoDFxUnkLdIVwqmnvNN2GX62uBN2H9SQL7KpJa5BhBq','user','ak_0974a7b533f0c784','2023-05-11 10:08:00',NULL);

