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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$I7MDFTR53.IGCwYnMECFoRutWp/JmXksJOeasb6v73tnurvCT1TdR','user','ak_8ebca98095b62ce9','2023-06-12 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$b2qByxNF97GWSgloRkveQB9WDOpWqAMUJExAxsAM5Ktns.cJz0mZx','user','ak_16c48f3bd609e60b','2023-10-03 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$iRWf4koBfTBph3FwjU7oPbueJUmisFAOcHxRBFxMaLNZizTrwfDfN','admin','ak_ed3ef8329e41605d','2023-12-23 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$b2pmoVr87bC5UKM6P58FRcVHpkn87uNUj.gGuGyCaeWJFPmamu9en','admin','ak_006634c3c9e52a6d','2023-06-11 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$D2KI9mzRjDDgOSCxE09io7z06gT4PZP4J2vyN/3jLJME0dT.yFfgS','user','ak_8aced122e821fd1b','2023-05-14 10:22:00',NULL);

