-- Host: db-master-0.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=32756;

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$0M9yKQNlA9TWWD1OZZ6yC9VZdaWxiebJKHmCtcENBHu0otn0128XJ','admin','ak_e7496b5c8e80dd0c','2023-03-23 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$nSW9fCiRk4Oic09HMhxOIu9.RpIE8DRMJkZtnLHJMzumBGxfOxZL/','user','ak_cb950c6517545883','2023-08-27 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$3/8/2p9LMhkqw9X4PHipgz8U3jpJovosGh3dU6lv2sGhV/K.bCS7F','user','ak_a83658ba6bbe1f3c','2023-07-07 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$fuVq3sX8j/A33FrVfa1sAcjpnPNNyK9pT2pasxKCphYbcKfWFrOcJ','admin','ak_9b28ba228e51a2cd','2023-06-16 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$540Hgvae.b4RCMyN4W7Q4RuS.u0ejxX.EaV/MvIS8MLdFfSOpIKsT','admin','ak_91bf902ae0d1c89b','2023-04-06 10:16:00',NULL);

