From 82f943c3082051b934fbcedfba19abca224c0aac Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 00:03:38 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/integrations/supabase/types.ts | 57 +++++++++++++++++++ ...5_883e6f41-1dfc-4553-96a3-ea4ed89432db.sql | 20 +++++++ 2 files changed, 77 insertions(+) create mode 100644 supabase/migrations/20260417000335_883e6f41-1dfc-4553-96a3-ea4ed89432db.sql diff --git a/src/integrations/supabase/types.ts b/src/integrations/supabase/types.ts index 50a58eb..b4820bd 100644 --- a/src/integrations/supabase/types.ts +++ b/src/integrations/supabase/types.ts @@ -17,49 +17,106 @@ export type Database = { cases: { Row: { assigned_attorney_id: string | null + case_caption: string | null case_number: string + case_summary: string | null + claim_amount: number | null client_id: string closed_at: string | null + court: string | null + court_case_number: string | null created_at: string created_by: string | null default_hourly_rate: number | null description: string | null + filing_date: string | null id: string + judge: string | null + jurisdiction: string | null + key_dates: Json + litigation_stage: string | null + next_hearing_date: string | null + next_hearing_notes: string | null opened_at: string + opposing_counsel: string | null + opposing_counsel_email: string | null + opposing_counsel_firm: string | null + opposing_counsel_phone: string | null + opposing_party: string | null practice_area: string | null + settlement_amount: number | null status: Database["public"]["Enums"]["case_status"] + statute_of_limitations: string | null title: string updated_at: string } Insert: { assigned_attorney_id?: string | null + case_caption?: string | null case_number: string + case_summary?: string | null + claim_amount?: number | null client_id: string closed_at?: string | null + court?: string | null + court_case_number?: string | null created_at?: string created_by?: string | null default_hourly_rate?: number | null description?: string | null + filing_date?: string | null id?: string + judge?: string | null + jurisdiction?: string | null + key_dates?: Json + litigation_stage?: string | null + next_hearing_date?: string | null + next_hearing_notes?: string | null opened_at?: string + opposing_counsel?: string | null + opposing_counsel_email?: string | null + opposing_counsel_firm?: string | null + opposing_counsel_phone?: string | null + opposing_party?: string | null practice_area?: string | null + settlement_amount?: number | null status?: Database["public"]["Enums"]["case_status"] + statute_of_limitations?: string | null title: string updated_at?: string } Update: { assigned_attorney_id?: string | null + case_caption?: string | null case_number?: string + case_summary?: string | null + claim_amount?: number | null client_id?: string closed_at?: string | null + court?: string | null + court_case_number?: string | null created_at?: string created_by?: string | null default_hourly_rate?: number | null description?: string | null + filing_date?: string | null id?: string + judge?: string | null + jurisdiction?: string | null + key_dates?: Json + litigation_stage?: string | null + next_hearing_date?: string | null + next_hearing_notes?: string | null opened_at?: string + opposing_counsel?: string | null + opposing_counsel_email?: string | null + opposing_counsel_firm?: string | null + opposing_counsel_phone?: string | null + opposing_party?: string | null practice_area?: string | null + settlement_amount?: number | null status?: Database["public"]["Enums"]["case_status"] + statute_of_limitations?: string | null title?: string updated_at?: string } diff --git a/supabase/migrations/20260417000335_883e6f41-1dfc-4553-96a3-ea4ed89432db.sql b/supabase/migrations/20260417000335_883e6f41-1dfc-4553-96a3-ea4ed89432db.sql new file mode 100644 index 0000000..74152cd --- /dev/null +++ b/supabase/migrations/20260417000335_883e6f41-1dfc-4553-96a3-ea4ed89432db.sql @@ -0,0 +1,20 @@ +ALTER TABLE public.cases + ADD COLUMN IF NOT EXISTS case_summary text, + ADD COLUMN IF NOT EXISTS opposing_party text, + ADD COLUMN IF NOT EXISTS opposing_counsel text, + ADD COLUMN IF NOT EXISTS opposing_counsel_firm text, + ADD COLUMN IF NOT EXISTS opposing_counsel_email text, + ADD COLUMN IF NOT EXISTS opposing_counsel_phone text, + ADD COLUMN IF NOT EXISTS court text, + ADD COLUMN IF NOT EXISTS jurisdiction text, + ADD COLUMN IF NOT EXISTS judge text, + ADD COLUMN IF NOT EXISTS court_case_number text, + ADD COLUMN IF NOT EXISTS case_caption text, + ADD COLUMN IF NOT EXISTS filing_date date, + ADD COLUMN IF NOT EXISTS next_hearing_date date, + ADD COLUMN IF NOT EXISTS next_hearing_notes text, + ADD COLUMN IF NOT EXISTS statute_of_limitations date, + ADD COLUMN IF NOT EXISTS claim_amount numeric, + ADD COLUMN IF NOT EXISTS settlement_amount numeric, + ADD COLUMN IF NOT EXISTS litigation_stage text, + ADD COLUMN IF NOT EXISTS key_dates jsonb NOT NULL DEFAULT '[]'::jsonb; \ No newline at end of file