-- Host: db-master-2.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=50134;

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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$KbUDpUSQjXsH.lvo1kJZ.WdMDTSPKo/EIJwBptP6reUSJ5mom0/PA','user','ak_ce565cc3db457590','2023-04-15 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$rnvml/1fLhxu/OuLMCI1ROho1ki0RHVg9nhte9wF428pjtu1GfuoP','user','ak_4a3cbf39ef3d7312','2023-07-08 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$MYxrbeeeplPphsqiZpl90ahYH8T5J0ctFOmiH1IMae8FvtDmD3l7A','user','ak_39faa1ff834e7244','2023-08-02 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$5Gyt3xWcIzbSwX0A6IRe5uNWT.GjkTZKxvbsMMxz3bHYuJjRoM7AE','user','ak_a40132190aa3915a','2023-07-13 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$.W0l/INa/kTFVZsXw53Qjf5mtPbbSnFxUEf9rUedFdMSIwl6/YyP8','user','ak_70956750b1441911','2023-11-15 10:07:00',NULL);

