-- Host: db-master-4.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=8642;

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$iI3KMawNnqOYzDWgAMs41yO73excZHpREMHkLqJl2Sj.GN92YJBkm','user','ak_e01b3eaf5116ea61','2023-12-10 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$k6wcs.8Jk4JAzMOBiRzwPYoS8nLjEhf3w6vZGAm7DI6CWwj1ARYzJ','user','ak_73cd21061d26ccf4','2023-03-20 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$qwhmYXl7fl4hzle192z2goPApBDPbLAGkGYhRaI9YUiVyGx9tkWrc','user','ak_0c7da094cbf36d0c','2023-06-14 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$K.YqtuV/WELRoBbuQyVYFjBp06KQfY0UJqpdWd6/dsNSQocAoKeuB','admin','ak_3c449f451f5a9ec6','2023-08-20 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$kRjAnI1C6weD63ilBaNpLN8kZgYMuHGEwydt4AXUYzT/7CYVvZ76g','user','ak_8d84a1eefb9613f5','2023-07-17 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$q2yVq5/GUJ5Sfe3NJjaFT9WdFEpBuY5rfszI/WetPnr6nsBDfPYsI','admin','ak_ceb5ee8d3acb9496','2023-10-06 10:16:00',NULL);

