Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-18 01:40:44 +00:00
co-authored by renee-png
parent 591da5991e
commit 05550e1191
2 changed files with 22 additions and 0 deletions
@@ -0,0 +1,10 @@
-- Add archived_at to the four entity tables
ALTER TABLE public.clients ADD COLUMN archived_at timestamptz;
ALTER TABLE public.cases ADD COLUMN archived_at timestamptz;
ALTER TABLE public.contacts ADD COLUMN archived_at timestamptz;
ALTER TABLE public.homeowners ADD COLUMN archived_at timestamptz;
CREATE INDEX idx_clients_archived_at ON public.clients (archived_at);
CREATE INDEX idx_cases_archived_at ON public.cases (archived_at);
CREATE INDEX idx_contacts_archived_at ON public.contacts (archived_at);
CREATE INDEX idx_homeowners_archived_at ON public.homeowners (archived_at);