Files
DentalManagementElogin/packages/db/shared/schemas/objects/UserCreateWithoutAppointmentsInput.schema.ts
2025-05-08 21:27:29 +05:30

17 lines
534 B
TypeScript

import { z } from 'zod';
import { PatientCreateNestedManyWithoutUserInputObjectSchema } from './PatientCreateNestedManyWithoutUserInput.schema';
import type { Prisma } from '../../../generated/prisma';
const Schema: z.ZodType<Prisma.UserCreateWithoutAppointmentsInput> = z
.object({
username: z.string(),
password: z.string(),
patients: z
.lazy(() => PatientCreateNestedManyWithoutUserInputObjectSchema)
.optional(),
})
.strict();
export const UserCreateWithoutAppointmentsInputObjectSchema = Schema;