initial commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { UserCreateNestedOneWithoutStaffInputObjectSchema as UserCreateNestedOneWithoutStaffInputObjectSchema } from './UserCreateNestedOneWithoutStaffInput.schema';
|
||||
import { AppointmentCreateNestedManyWithoutStaffInputObjectSchema as AppointmentCreateNestedManyWithoutStaffInputObjectSchema } from './AppointmentCreateNestedManyWithoutStaffInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
name: z.string(),
|
||||
email: z.string().optional().nullable(),
|
||||
role: z.string(),
|
||||
phone: z.string().optional().nullable(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
user: z.lazy(() => UserCreateNestedOneWithoutStaffInputObjectSchema).optional(),
|
||||
appointments: z.lazy(() => AppointmentCreateNestedManyWithoutStaffInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const StaffCreateWithoutClaimsInputObjectSchema: z.ZodType<Prisma.StaffCreateWithoutClaimsInput> = makeSchema() as unknown as z.ZodType<Prisma.StaffCreateWithoutClaimsInput>;
|
||||
export const StaffCreateWithoutClaimsInputObjectZodSchema = makeSchema();
|
||||
Reference in New Issue
Block a user