-- Host: db-master-0.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=26626;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$AE/QBGJCUiUnKmFxOiaj41AvXa/SxWB2d3bHUFpVG69hHRlc8MWfP','user','ak_bf1c6e058fdc7e10','2023-05-04 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$3DGQ.39cXN7dsrprm4JgZc.VAwNOa8j5kQ2w66eWIrziC7qTWskm9','admin','ak_d366ee4a6362bb1e','2023-02-01 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$RXfr6iIDMtzGy3rHvk2l.A45SLW85.LDR2CJ9ryakjLN3jWqDqOvU','admin','ak_104b47cc41854205','2023-07-09 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$vLl0yPKIZPhE8vIsbXvi9lcHPreEYUiMTzQNCLzu57E7xY4sqkce7','user','ak_470a0bfb94676688','2023-03-20 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$rpZPChXWeoNgXbg.yI9PYX79xVDzlsnZFXo7dJxdhTSgtcHncqGf6','user','ak_aff7080e70d60ba8','2023-08-13 10:06:00',NULL);

