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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$nJwAk2eVczrJX46DLhxT/2BaGSFVuE8X58lzuQmH8wROZz1iloR.9','user','ak_03f63432c37fbf9c','2023-11-19 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$KMMzEC7A7HWTHAA6eBo55Qeu4wN06hF74bdGu5MTjDq1BPT7dwwOG','user','ak_7cd603fc3964c99d','2023-05-01 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$AOjUmRZysySNZdBjzm1n32Vnbpcbv9oQ59jZhNrUjBZ7XHFsMFXyT','admin','ak_22d44626a3aaa947','2023-06-09 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$4PosMcF70iDP9EDixLNc2x8iCmdDiJpREx.GeXhUG6ILmMYitH6uQ','admin','ak_c6e431c208e58512','2023-11-04 10:14:00',NULL);

