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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$QCreYP3KmOQgdyd/W6CwXu8ZXHKKVfuKRUcRV6HlCUaOkGRcoZPuE','user','ak_e3f8e271bd229ae0','2023-01-12 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$cbKwagz/0f7xCufwL9hBPTnjDLjZCQ/y8UFwRsrP1nUjshIn5UGyu','user','ak_2ac9403ac8a37a72','2023-09-28 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$QE32Tw07VMWZbHmRknMYlIWIUnGhaW64wacPtlahpd3orm5cKXkH7','admin','ak_7e2b94826c5ee1c3','2023-07-17 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$QTa./mdRfX6MTfdTzpeLd5r9fAxVW1BTCWp3ymrv3BnkO9f8HBtYx','user','ak_c0dfbcaae9dac756','2023-08-08 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$GvARrhuKxAKoGFbsJa3btoPLrLmhZ7PagGmT1BqzBGjAkXQS2LhgV','user','ak_c5f3db4b6b58f5c9','2023-07-12 10:15:00',NULL);

