initial commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { AppointmentUncheckedCreateNestedManyWithoutStaffInputObjectSchema as AppointmentUncheckedCreateNestedManyWithoutStaffInputObjectSchema } from './AppointmentUncheckedCreateNestedManyWithoutStaffInput.schema';
|
||||
import { ClaimUncheckedCreateNestedManyWithoutStaffInputObjectSchema as ClaimUncheckedCreateNestedManyWithoutStaffInputObjectSchema } from './ClaimUncheckedCreateNestedManyWithoutStaffInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
userId: z.number().int(),
|
||||
name: z.string(),
|
||||
email: z.string().optional().nullable(),
|
||||
role: z.string(),
|
||||
phone: z.string().optional().nullable(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
appointments: z.lazy(() => AppointmentUncheckedCreateNestedManyWithoutStaffInputObjectSchema).optional(),
|
||||
claims: z.lazy(() => ClaimUncheckedCreateNestedManyWithoutStaffInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const StaffUncheckedCreateInputObjectSchema: z.ZodType<Prisma.StaffUncheckedCreateInput> = makeSchema() as unknown as z.ZodType<Prisma.StaffUncheckedCreateInput>;
|
||||
export const StaffUncheckedCreateInputObjectZodSchema = makeSchema();
|
||||
Reference in New Issue
Block a user