initial commit
This commit is contained in:
11
packages/db/shared/schemas/objects/AppointmentArgs.schema.ts
Normal file
11
packages/db/shared/schemas/objects/AppointmentArgs.schema.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { AppointmentSelectObjectSchema as AppointmentSelectObjectSchema } from './AppointmentSelect.schema';
|
||||
import { AppointmentIncludeObjectSchema as AppointmentIncludeObjectSchema } from './AppointmentInclude.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
select: z.lazy(() => AppointmentSelectObjectSchema).optional(),
|
||||
include: z.lazy(() => AppointmentIncludeObjectSchema).optional()
|
||||
}).strict();
|
||||
export const AppointmentArgsObjectSchema = makeSchema();
|
||||
export const AppointmentArgsObjectZodSchema = makeSchema();
|
||||
Reference in New Issue
Block a user