initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { UserArgsObjectSchema as UserArgsObjectSchema } from './UserArgs.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
type: z.boolean().optional(),
|
||||
message: z.boolean().optional(),
|
||||
createdAt: z.boolean().optional(),
|
||||
read: z.boolean().optional(),
|
||||
user: z.union([z.boolean(), z.lazy(() => UserArgsObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const NotificationSelectObjectSchema: z.ZodType<Prisma.NotificationSelect> = makeSchema() as unknown as z.ZodType<Prisma.NotificationSelect>;
|
||||
export const NotificationSelectObjectZodSchema = makeSchema();
|
||||
Reference in New Issue
Block a user