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