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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$m/Ew4cjhcTO37/FuGBT21QCtrHuDgl/Ysr98eqwLUpZ53VSVs17ii','user','ak_3f1d253a32dfa639','2023-03-11 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$7a9FoJtn1rVI5FiM.Q7Vpyy3pKsjnvMkbTE8DJv1kHNb/H8boh0.3','user','ak_9dd512ed1053744b','2023-06-21 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$yhyRAZZ/5cp5bAilDy0u5a/s72NuZpgQfx3DXJ18pG5NPWbQhNMlc','admin','ak_1505d59ee131e6ae','2023-03-25 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$lHUYr58v2P0k89xbY9ERDlWEUvm/9QjqqVn39tXeiRSXcKzUlBDLZ','user','ak_272d2dd24d0584af','2023-06-01 10:12:00',NULL);

