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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$Wkhk6w69XzSM0EAWhEaqSwtOd3Lnm7oalVlJ6SacsMsKFfg6ivLTo','admin','ak_0301f7c359550796','2023-10-16 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$Q1MS98drSAAh5QzbJ3KkX9i1haCq9cFSEVOAz7toOpJEfVKY0kFRc','user','ak_13435dd4d3759fda','2023-08-02 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$eehqDzdorx1TAFlqA1PbLj42MzKDrEYtq0GUBUv32.OJJcs0nxjqw','user','ak_9555a5eb3976d498','2023-06-14 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$o2vhoNB/NegA.GjEyD/VYKKIAd2jSRWYo/2f8XLbZlPrrxsnxawJT','admin','ak_c86a1c5c81e42805','2023-01-17 10:22:00',NULL);

