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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$xizFF6ZadYuZb34X4k6Mmnm1a52XKWn65.XGK0Gqwz1E5SN3WrJ92','admin','ak_58d20d91eebf08ec','2023-10-12 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$YX7ceyrQyW1wHXrspuT3BovFXyYKNkyGn/m9EU5ZXkAlgvFD.XdOK','user','ak_4444f739f7046fe1','2023-01-08 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$dz.YXn9hLOMCcT0GOIZX7A1vU1COCz1Wzb9yEyqtOzSF.0lTRC/hI','admin','ak_4e3efe719aad0526','2023-09-27 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$CcQjF0k5ehVbM7USjrF7D1T572euUdsByeOOPFabwfryallrJyvD2','user','ak_a5e26cb70cbf73bf','2023-06-27 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$fxwaxEWVy.6Dx1ZXF83kPzledBjVXZS.DaM8J6hnfXxHoKkRqHl9h','admin','ak_2c4c85e97833abf3','2023-07-11 10:23:00',NULL);

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

--
-- Dumping data for table `sessions`
--


