-- Make audit_logs robust: allow NULLs and set safe defaults for commonly missing fields
ALTER TABLE audit_logs
  MODIFY action VARCHAR(190) NULL DEFAULT '',
  MODIFY resource VARCHAR(190) NULL DEFAULT '',
  MODIFY status INT NULL DEFAULT 0;
