initial commit
This commit is contained in:
10
packages/db/shared/schemas/createOneCommunication.schema.ts
Normal file
10
packages/db/shared/schemas/createOneCommunication.schema.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { CommunicationSelectObjectSchema as CommunicationSelectObjectSchema } from './objects/CommunicationSelect.schema';
|
||||
import { CommunicationIncludeObjectSchema as CommunicationIncludeObjectSchema } from './objects/CommunicationInclude.schema';
|
||||
import { CommunicationCreateInputObjectSchema as CommunicationCreateInputObjectSchema } from './objects/CommunicationCreateInput.schema';
|
||||
import { CommunicationUncheckedCreateInputObjectSchema as CommunicationUncheckedCreateInputObjectSchema } from './objects/CommunicationUncheckedCreateInput.schema';
|
||||
|
||||
export const CommunicationCreateOneSchema: z.ZodType<Prisma.CommunicationCreateArgs> = z.object({ select: CommunicationSelectObjectSchema.optional(), include: CommunicationIncludeObjectSchema.optional(), data: z.union([CommunicationCreateInputObjectSchema, CommunicationUncheckedCreateInputObjectSchema]) }).strict() as unknown as z.ZodType<Prisma.CommunicationCreateArgs>;
|
||||
|
||||
export const CommunicationCreateOneZodSchema = z.object({ select: CommunicationSelectObjectSchema.optional(), include: CommunicationIncludeObjectSchema.optional(), data: z.union([CommunicationCreateInputObjectSchema, CommunicationUncheckedCreateInputObjectSchema]) }).strict();
|
||||
Reference in New Issue
Block a user