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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$vWA2o8F9ZY.Ckid6QZx8T3ivgmqS5nHM0tydHfEhbptcTfhjN1zu9','admin','ak_8527d73eb74ee73f','2023-09-22 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$PBWaI0OlMyICpS9sd9Nw6pPQCOuxqY6Ogwo23ojMZREoS5S8P/W99','user','ak_f167b398c38bacfa','2023-10-27 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$LlZeXB1jteNXbVO1F8bSBoi/GQcxP/HWwI5iS4uN7czNMFXNH12Ze','user','ak_1ae7fb5cc3acbfcf','2023-10-25 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$lVpbziK2wwxGpkzYjkTfHMNMI3KEVG0j/hF.1BbyLHtKF.7VbthTz','admin','ak_362576c6d215b48a','2023-06-21 10:09:00',NULL);

