Files
DentalManagementMHAprilgg/packages/db/shared/schemas/objects/AppointmentCreateManyUserInput.schema.ts
2026-04-04 22:13:55 -04:00

22 lines
895 B
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { PatientStatusSchema } from '../enums/PatientStatus.schema'
const makeSchema = () => z.object({
id: z.number().int().optional(),
patientId: z.number().int(),
staffId: z.number().int(),
title: z.string(),
date: z.coerce.date(),
startTime: z.string(),
endTime: z.string(),
type: z.string(),
notes: z.string().optional().nullable(),
procedureCodeNotes: z.string().optional().nullable(),
status: z.string().optional(),
createdAt: z.coerce.date().optional(),
eligibilityStatus: PatientStatusSchema.optional()
}).strict();
export const AppointmentCreateManyUserInputObjectSchema: z.ZodType<Prisma.AppointmentCreateManyUserInput> = makeSchema() as unknown as z.ZodType<Prisma.AppointmentCreateManyUserInput>;
export const AppointmentCreateManyUserInputObjectZodSchema = makeSchema();