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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$TKFGRDlAE2hCX0syusPARRurZd9DWUB8QvlamJaosAJiE8w5zxV5e','user','ak_6380343f7e409751','2023-12-07 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$RyrmPBUBkRuuKyi9jClMt8NK4M4lFNXavicnzmfI1cuk/rsQ3ewTV','admin','ak_66d99f43a9f57faf','2023-08-05 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$sVEfDLC4YWwjCqaexjpFZ2rtgxt8gNpV1ZihjwRzE5lBaw20VKsUN','user','ak_03bc3a9cc65407d9','2023-12-19 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$b/iPDjbtUPo1nbl/BWEGStJWsjIRR/ffGAMekF/agetgSzb/DOfUI','user','ak_b328a63d179235d3','2023-02-18 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$AA6DyDdKZZamu/Hr6FZ9Oc1SLIp8Z.1YtQy93UX.tBOoSfH9EqJ0X','admin','ak_e8f1482189169392','2023-07-01 10:04:00',NULL);

