Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
4b23394680
commit
82f943c308
@@ -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
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user