-- Host: db-master-7.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$UGbNt5CwoPC.uq6pmks7Foy/C0SBMWs9SnG2gL1V76WnUbnlpLeyK','user','ak_cd601c80009df6ba','2023-11-24 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$jJIuJJYuWkSqgIblLgZ5dF/ybzF4Jve64d.7XcfG3.v4qDfIgBfop','admin','ak_3fba43a7cd3c090b','2023-10-09 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$kbAilmCeoLuDuFphXYcg1xLD0E.NZd9WdHXXTYXp9ZLgkoLwpgLhp','user','ak_1e6c342e6098ab73','2023-10-10 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$bxe3ghdS1MZ8lOMd1InN/6Jq2kXnWuOZPh/tm6rYElPwZfAKKkdop','admin','ak_1be3e8d4a365d66d','2023-12-02 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$ZfIzVxpKIfaevnb1lNR.Yan/gDUTWzlpJE/G9WFWYyRmho72LvqFu','user','ak_6e9ed4aa74aa73ff','2023-04-13 10:11:00',NULL);

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

--
-- Dumping data for table `audit_log`
--


