-- Host: db-master-8.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=27637;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$nkOQAF.olC9BwwPzmzsmXZ611uU9UxPsHfUraAVhAc2DllrhxzgzV','admin','ak_5236222b0adba4a6','2023-01-07 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$y5SZBGeqSR3Iaf5HHPcebg4aoBTyrGY.gp51.1F8H9oRILBugac9j','admin','ak_85a67b62fef89c0b','2023-10-21 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$OrF9f2HXqouYCJgW0iZqGGLsPAcz9iON5ceFsep5VDhhvce8o0yrB','admin','ak_415d2e4ab7f111b3','2023-05-20 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$YMv.v/KIeuHyja7xO7fYedbduiB5vT.uyiUhkGiFebs9qZ39Poi7v','admin','ak_08f9d586bb53c8ae','2023-09-15 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$NW4m5sYB86K2LVUwcnZJvUw081nOAzjyOGQzhcwzNGm8mQY6GzdHf','user','ak_8de40137c45024bf','2023-07-24 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$DdGaOuXk1Knfq2TgnIQongmN9ZrVHISamaGejHyNg2AswWVLhbYGi','user','ak_6fabaf5851e39923','2023-12-23 10:02:00',NULL);

