begin; alter table public.chat_sessions add column if not exists pinned boolean not null default false, add column if not exists archived_at timestamptz null; grant update (pinned, archived_at) on table public.chat_sessions to authenticated; commit;