ALTER TABLE `audit_logs` ADD `case_id` INT NULL, ADD FOREIGN KEY (`case_id`) REFERENCES `cases`(`id`) ON DELETE SET NULL;