ALTER TABLE events ADD COLUMN public BOOLEAN NOT NULL DEFAULT true; CREATE INDEX events_public_occurred_at_desc ON events (public, occurred_at DESC);