12 lines
564 B
TypeScript
12 lines
564 B
TypeScript
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();
|