Files
Jyotisha/frontend/supabase/migrations/20260830010000_chat_session_chart_profile_binding.sql
T
2026-08-30 15:55:45 +08:00

15 lines
501 B
PL/PgSQL

begin;
alter table public.chat_sessions
add column if not exists chart_profile_id text,
add column if not exists chart_profile_name text,
add column if not exists chart_profile_role text
check (chart_profile_role in ('self', 'other'));
grant insert (chart_profile_id, chart_profile_name, chart_profile_role)
on table public.chat_sessions to authenticated;
grant update (chart_profile_id, chart_profile_name, chart_profile_role)
on table public.chat_sessions to authenticated;
commit;