-- Host: db-master-3.internal    Database: production_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=27289;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$jg0ewIJXfG7wUEt9.l147wI89wUNljvwfiE5WXpeD5oX5uHwsus4b','admin','ak_b827612715c47fa2','2023-02-10 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$5bN1gKCzUsz3ImX1r078Vtpwhs8vIAgZXYtV.yb4OAJ7l3VfhEipY','admin','ak_bd7c5415299a0c3d','2023-12-06 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$Ff4DrqC4/0H5P97HBZX.IYYQ2jOzd7..U2R8ZoFM1NNY0gSyWGgdO','admin','ak_07c5727f5483490b','2023-07-24 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$QVsHMgR.1JFOUxtvA6ZA3g4En3dfJ0unyC/AFsn90RUcIlPJInYQK','admin','ak_c4cb3241bcead5ed','2023-12-16 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$CgkpN4aFs8Q4SX5W5J4miFYfoWgGEn66rZnkAyN6peS/E4luNM0Z/','user','ak_7c0e9713059c4164','2023-07-13 10:23:00',NULL);

