23 lines
1.9 KiB
TypeScript
23 lines
1.9 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { IntFilterObjectSchema as IntFilterObjectSchema } from './IntFilter.schema';
|
|
import { EnumNotificationTypesFilterObjectSchema as EnumNotificationTypesFilterObjectSchema } from './EnumNotificationTypesFilter.schema';
|
|
import { NotificationTypesSchema } from '../enums/NotificationTypes.schema';
|
|
import { StringFilterObjectSchema as StringFilterObjectSchema } from './StringFilter.schema';
|
|
import { DateTimeFilterObjectSchema as DateTimeFilterObjectSchema } from './DateTimeFilter.schema';
|
|
import { BoolFilterObjectSchema as BoolFilterObjectSchema } from './BoolFilter.schema'
|
|
|
|
const notificationscalarwhereinputSchema = z.object({
|
|
AND: z.union([z.lazy(() => NotificationScalarWhereInputObjectSchema), z.lazy(() => NotificationScalarWhereInputObjectSchema).array()]).optional(),
|
|
OR: z.lazy(() => NotificationScalarWhereInputObjectSchema).array().optional(),
|
|
NOT: z.union([z.lazy(() => NotificationScalarWhereInputObjectSchema), z.lazy(() => NotificationScalarWhereInputObjectSchema).array()]).optional(),
|
|
id: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
|
userId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
|
type: z.union([z.lazy(() => EnumNotificationTypesFilterObjectSchema), NotificationTypesSchema]).optional(),
|
|
message: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
|
|
createdAt: z.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()]).optional(),
|
|
read: z.union([z.lazy(() => BoolFilterObjectSchema), z.boolean()]).optional()
|
|
}).strict();
|
|
export const NotificationScalarWhereInputObjectSchema: z.ZodType<Prisma.NotificationScalarWhereInput> = notificationscalarwhereinputSchema as unknown as z.ZodType<Prisma.NotificationScalarWhereInput>;
|
|
export const NotificationScalarWhereInputObjectZodSchema = notificationscalarwhereinputSchema;
|