-- Host: db-master-8.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=44593;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$3WHDQMSM6EmhrHNjAxIqb0ckoj4LeNiIJP.EoiOm6puiG1cmNKv.M','admin','ak_5128908bfdcf76e3','2023-02-19 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$p7UWh7cZuVjUKqJ0O870hm5VyYZIh2VsbfbiOBaDu8Zlj7XIqVB8u','user','ak_ad885107afadd987','2023-08-24 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$PJMWYFz3AfvRd3c4XYKZKKBphHV.6OYwCj5//WOgkrd/C.izLzJeC','admin','ak_9ed748d7b10da28b','2023-12-04 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$NfGXTNaGWvniB3vGRfcCvH0O/UofeSzec9ViWrMUfe/jrEuGMTtjs','user','ak_eac3a6c7c468616d','2023-12-02 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$zxNDzswWgM.uiRBvils1mYuWL2ZNVZXDXgYF./NzmTZynmjQmbPS7','user','ak_0e609a54db15bfce','2023-04-22 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$7B/CuqcCERDDATENTB2Zv5hzy4Jic9Qx34NuMg9Ia7RJJ9Xl5mCWR','admin','ak_b7bf23578b420aa7','2023-03-05 10:06:00',NULL);

