initial commit
This commit is contained in:
10
packages/db/shared/schemas/createOnePayment.schema.ts
Normal file
10
packages/db/shared/schemas/createOnePayment.schema.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PaymentSelectObjectSchema as PaymentSelectObjectSchema } from './objects/PaymentSelect.schema';
|
||||
import { PaymentIncludeObjectSchema as PaymentIncludeObjectSchema } from './objects/PaymentInclude.schema';
|
||||
import { PaymentCreateInputObjectSchema as PaymentCreateInputObjectSchema } from './objects/PaymentCreateInput.schema';
|
||||
import { PaymentUncheckedCreateInputObjectSchema as PaymentUncheckedCreateInputObjectSchema } from './objects/PaymentUncheckedCreateInput.schema';
|
||||
|
||||
export const PaymentCreateOneSchema: z.ZodType<Prisma.PaymentCreateArgs> = z.object({ select: PaymentSelectObjectSchema.optional(), include: PaymentIncludeObjectSchema.optional(), data: z.union([PaymentCreateInputObjectSchema, PaymentUncheckedCreateInputObjectSchema]) }).strict() as unknown as z.ZodType<Prisma.PaymentCreateArgs>;
|
||||
|
||||
export const PaymentCreateOneZodSchema = z.object({ select: PaymentSelectObjectSchema.optional(), include: PaymentIncludeObjectSchema.optional(), data: z.union([PaymentCreateInputObjectSchema, PaymentUncheckedCreateInputObjectSchema]) }).strict();
|
||||
Reference in New Issue
Block a user