diff --git a/src/types.ts b/src/types.ts index 389d744..ef17963 100644 --- a/src/types.ts +++ b/src/types.ts @@ -9,7 +9,7 @@ export interface Account { status?: string; // ACTIVE, CLOSED currency?: string; // Default: USD balance: number | Decimal; // Current balance - can be Prisma Decimal or number - notes?: string; // Optional notes + notes?: string | null; // Optional notes - accepts null for Prisma compatibility createdAt?: Date; updatedAt?: Date; } @@ -20,11 +20,11 @@ export interface Transaction { date: string | Date; // ISO date string or Date object description: string; amount: number | Decimal; // Amount - can be Prisma Decimal or number - category?: string; // Optional category + category?: string | null; // Optional category - accepts null for Prisma compatibility status?: string; // PENDING, CLEARED type?: string; // DEPOSIT, WITHDRAWAL, TRANSFER - notes?: string; // Optional notes - tags?: string; // Optional comma-separated tags + notes?: string | null; // Optional notes - accepts null for Prisma compatibility + tags?: string | null; // Optional comma-separated tags - accepts null for Prisma compatibility createdAt?: Date; updatedAt?: Date; }