initial commit
This commit is contained in:
10
packages/db/shared/schemas/createOneNotification.schema.ts
Normal file
10
packages/db/shared/schemas/createOneNotification.schema.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { NotificationSelectObjectSchema as NotificationSelectObjectSchema } from './objects/NotificationSelect.schema';
|
||||
import { NotificationIncludeObjectSchema as NotificationIncludeObjectSchema } from './objects/NotificationInclude.schema';
|
||||
import { NotificationCreateInputObjectSchema as NotificationCreateInputObjectSchema } from './objects/NotificationCreateInput.schema';
|
||||
import { NotificationUncheckedCreateInputObjectSchema as NotificationUncheckedCreateInputObjectSchema } from './objects/NotificationUncheckedCreateInput.schema';
|
||||
|
||||
export const NotificationCreateOneSchema: z.ZodType<Prisma.NotificationCreateArgs> = z.object({ select: NotificationSelectObjectSchema.optional(), include: NotificationIncludeObjectSchema.optional(), data: z.union([NotificationCreateInputObjectSchema, NotificationUncheckedCreateInputObjectSchema]) }).strict() as unknown as z.ZodType<Prisma.NotificationCreateArgs>;
|
||||
|
||||
export const NotificationCreateOneZodSchema = z.object({ select: NotificationSelectObjectSchema.optional(), include: NotificationIncludeObjectSchema.optional(), data: z.union([NotificationCreateInputObjectSchema, NotificationUncheckedCreateInputObjectSchema]) }).strict();
|
||||
Reference in New Issue
Block a user