mirror of
https://github.com/renee-png/acmcc.git
synced 2026-06-21 01:40:01 +00:00
183fe0a93c
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
6 lines
438 B
SQL
6 lines
438 B
SQL
ALTER TABLE public.profiles
|
|
ADD COLUMN IF NOT EXISTS primary_owner_id UUID REFERENCES public.owners(id) ON DELETE SET NULL,
|
|
ADD COLUMN IF NOT EXISTS primary_association_id UUID REFERENCES public.associations(id) ON DELETE SET NULL;
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_profiles_primary_owner_id ON public.profiles(primary_owner_id);
|
|
CREATE INDEX IF NOT EXISTS idx_profiles_primary_association_id ON public.profiles(primary_association_id); |