-- 004_award_org.sql -- Who gave the award. SET NULL rather than CASCADE: retiring a -- partner org shouldn't erase an award people have received. ALTER TABLE awards ADD COLUMN org_id TEXT REFERENCES organizations (id) ON DELETE SET NULL; CREATE INDEX awards_org_idx ON awards (org_id, sort_order);