diff --git a/src/integrations/supabase/types.ts b/src/integrations/supabase/types.ts index 5be89d8..afed045 100644 --- a/src/integrations/supabase/types.ts +++ b/src/integrations/supabase/types.ts @@ -666,7 +666,7 @@ export type Database = { credit: number debit: number description: string | null - entry_date: string + entry_date: string | null id: string interest: number late: number @@ -688,7 +688,7 @@ export type Database = { credit?: number debit?: number description?: string | null - entry_date?: string + entry_date?: string | null id?: string interest?: number late?: number @@ -710,7 +710,7 @@ export type Database = { credit?: number debit?: number description?: string | null - entry_date?: string + entry_date?: string | null id?: string interest?: number late?: number diff --git a/supabase/migrations/20260426083827_b9521c94-636c-4fc1-877e-9cc9d02cae9c.sql b/supabase/migrations/20260426083827_b9521c94-636c-4fc1-877e-9cc9d02cae9c.sql new file mode 100644 index 0000000..fb63a3d --- /dev/null +++ b/supabase/migrations/20260426083827_b9521c94-636c-4fc1-877e-9cc9d02cae9c.sql @@ -0,0 +1,3 @@ +ALTER TABLE public.collection_ledger_entries + ALTER COLUMN entry_date DROP NOT NULL, + ALTER COLUMN entry_date DROP DEFAULT; \ No newline at end of file