Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-17 02:44:45 +00:00
co-authored by renee-png
parent 45fc461927
commit 09351957de
2 changed files with 313 additions and 0 deletions
+201
View File
@@ -14,6 +14,88 @@ export type Database = {
}
public: {
Tables: {
call_logs: {
Row: {
billable: boolean
call_date: string
caller_name: string | null
caller_phone: string | null
case_id: string
contact_id: string | null
created_at: string
created_by: string | null
direction: string
duration_minutes: number | null
follow_up_date: string | null
follow_up_required: boolean
homeowner_id: string | null
id: string
notes: string | null
subject: string
updated_at: string
}
Insert: {
billable?: boolean
call_date?: string
caller_name?: string | null
caller_phone?: string | null
case_id: string
contact_id?: string | null
created_at?: string
created_by?: string | null
direction?: string
duration_minutes?: number | null
follow_up_date?: string | null
follow_up_required?: boolean
homeowner_id?: string | null
id?: string
notes?: string | null
subject?: string
updated_at?: string
}
Update: {
billable?: boolean
call_date?: string
caller_name?: string | null
caller_phone?: string | null
case_id?: string
contact_id?: string | null
created_at?: string
created_by?: string | null
direction?: string
duration_minutes?: number | null
follow_up_date?: string | null
follow_up_required?: boolean
homeowner_id?: string | null
id?: string
notes?: string | null
subject?: string
updated_at?: string
}
Relationships: [
{
foreignKeyName: "call_logs_case_id_fkey"
columns: ["case_id"]
isOneToOne: false
referencedRelation: "cases"
referencedColumns: ["id"]
},
{
foreignKeyName: "call_logs_contact_id_fkey"
columns: ["contact_id"]
isOneToOne: false
referencedRelation: "contacts"
referencedColumns: ["id"]
},
{
foreignKeyName: "call_logs_homeowner_id_fkey"
columns: ["homeowner_id"]
isOneToOne: false
referencedRelation: "homeowners"
referencedColumns: ["id"]
},
]
}
case_contacts: {
Row: {
case_id: string
@@ -1435,6 +1517,125 @@ export type Database = {
},
]
}
payment_plan_installments: {
Row: {
amount: number
created_at: string
due_date: string
id: string
ledger_entry_id: string | null
notes: string | null
paid: boolean
paid_amount: number | null
paid_on: string | null
plan_id: string
sort_order: number
updated_at: string
}
Insert: {
amount?: number
created_at?: string
due_date: string
id?: string
ledger_entry_id?: string | null
notes?: string | null
paid?: boolean
paid_amount?: number | null
paid_on?: string | null
plan_id: string
sort_order?: number
updated_at?: string
}
Update: {
amount?: number
created_at?: string
due_date?: string
id?: string
ledger_entry_id?: string | null
notes?: string | null
paid?: boolean
paid_amount?: number | null
paid_on?: string | null
plan_id?: string
sort_order?: number
updated_at?: string
}
Relationships: [
{
foreignKeyName: "payment_plan_installments_ledger_entry_id_fkey"
columns: ["ledger_entry_id"]
isOneToOne: false
referencedRelation: "collection_ledger_entries"
referencedColumns: ["id"]
},
{
foreignKeyName: "payment_plan_installments_plan_id_fkey"
columns: ["plan_id"]
isOneToOne: false
referencedRelation: "payment_plans"
referencedColumns: ["id"]
},
]
}
payment_plans: {
Row: {
collection_id: string
created_at: string
created_by: string | null
down_payment: number
frequency: string
id: string
installment_amount: number
installment_count: number
name: string | null
notes: string | null
start_date: string
status: string
total_amount: number
updated_at: string
}
Insert: {
collection_id: string
created_at?: string
created_by?: string | null
down_payment?: number
frequency?: string
id?: string
installment_amount?: number
installment_count?: number
name?: string | null
notes?: string | null
start_date?: string
status?: string
total_amount?: number
updated_at?: string
}
Update: {
collection_id?: string
created_at?: string
created_by?: string | null
down_payment?: number
frequency?: string
id?: string
installment_amount?: number
installment_count?: number
name?: string | null
notes?: string | null
start_date?: string
status?: string
total_amount?: number
updated_at?: string
}
Relationships: [
{
foreignKeyName: "payment_plans_collection_id_fkey"
columns: ["collection_id"]
isOneToOne: false
referencedRelation: "collections"
referencedColumns: ["id"]
},
]
}
profiles: {
Row: {
created_at: string