Files
DentalManagementMHAprilgg/packages/db/shared/schemas/variants/pure/Payment.pure.ts
2026-04-04 22:13:55 -04:00

27 lines
871 B
TypeScript

import * as z from 'zod';
import { PaymentStatusSchema } from '../../enums/PaymentStatus.schema';
// prettier-ignore
export const PaymentModelSchema = z.object({
id: z.number().int(),
claimId: z.number().int().nullable(),
patientId: z.number().int(),
userId: z.number().int(),
updatedById: z.number().int().nullable(),
totalBilled: z.number(),
totalPaid: z.number(),
totalAdjusted: z.number(),
totalDue: z.number(),
status: PaymentStatusSchema,
notes: z.string().nullable(),
icn: z.string().nullable(),
createdAt: z.date(),
updatedAt: z.date(),
claim: z.unknown().nullable(),
patient: z.unknown(),
updatedBy: z.unknown().nullable(),
serviceLineTransactions: z.array(z.unknown()),
serviceLines: z.array(z.unknown())
}).strict();
export type PaymentPureType = z.infer<typeof PaymentModelSchema>;