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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$6Py875mfCzpGa0uu/GkRsxf/bC.F/HSczusONcLMSUD5rZMt.SiVm','user','ak_a4269343bcc42cc1','2023-09-01 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$0OE5Fd.ZepefxhWinZX1qSWiTb1ZWnc1rgjqKYnxe/BY6qGUJk9tr','user','ak_e0f0e890d2f7b21b','2023-09-14 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$IFl8dVDs9BiGGuUNmMyEHPRaYKlMlIILthS6GEX9z.YRX9dVnX3KZ','admin','ak_7bedda6d37cfe466','2023-03-24 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$1I3ivSF4wCsmXPfC1sNcu.E3iQSWXhUx51b4/DTaSS68yn4HKu/Sc','user','ak_0cc74f731c8d39c0','2023-05-04 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$IMb1TaTql9DiwBgZdg7XuwP4m6DMAnh8OpU6bGCMWLhu3pR.2EvAp','admin','ak_2c63e31aa9fb0cdd','2023-09-20 10:16:00',NULL);

