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