ALTER TABLE grant_documents ADD COLUMN application_id INTEGER REFERENCES grant_applications(id) ON DELETE SET NULL;
CREATE INDEX idx_grant_documents_application ON grant_documents(application_id, category);
