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


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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$cOTo4RgbP4OqJc.NtQvde2jNQDFV/DX9Aitp/Rc3KqwWZumluuZqA','admin','ak_56d581f606060bf6','2023-11-16 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$nhPfQMTJXLSMRn91Ix3W5YVOyfX/k.l8FJfFaFooisctjy07PxbPI','admin','ak_f6fa42faf2717001','2023-02-24 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$9zrlJksqf5imovEJq5pQI0sR0sJbHP5TGXOT7ExH7mYOZf5QUi9rT','user','ak_a798778af8b0ca75','2023-11-11 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$KZYT2dzmJ3qQeFWt.l/5gtzuGDfoKNSYKp74/RDNOnZ7SyJvumYgs','user','ak_fc713a1b345544f9','2023-04-04 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$mvCbSsqivU4p6EGEYc86LM6dZ5ytmIERtYlkToxzOx0.kXvSvkl5o','admin','ak_b5bf6b5dfcc877fe','2023-09-26 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$ZLKe73mraHj3TpdbyuPrtoZBiXjZW.sBpI3f.NpyBg9LnnnnHvUDl','user','ak_de6b7e85d88f385b','2023-11-02 10:19: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=18171;

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


