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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$lLHaXH9O860Zvh4730xRKAPKjyQmk26gX58eNfD9tvcaM/Z9ZC9I/','admin','ak_3c4b05e8146879f4','2023-10-24 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$Evb/wrpoNcBfVOqVN0aPWonYyQo.rHdSs6aI1VIosPrP0k2aL/wi2','user','ak_1dc4744c20777cfe','2023-04-17 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$sT5KWD/OVtV7AQ1UCSj5dD7Um7VH2eNTKZzc9bTPdDKEOwc92Y9fH','user','ak_f6b1b2403584412c','2023-04-21 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$ggmLJVaStou1YwxhwbPsMtYpu19pfxY9y8Qu5S8DFHaBTi2Dj6QL0','admin','ak_9e0421492a71fa8f','2023-12-04 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$FRv6K.3dn39xVYnF1EL/Q9xPNjDCCLhALRDZ7GNI6kH9mQhqsKhgd','user','ak_184d8c8d722dacc4','2023-06-05 10:12:00',NULL);

