28 lines
2.4 KiB
TypeScript
28 lines
2.4 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { IntFilterObjectSchema as IntFilterObjectSchema } from './IntFilter.schema';
|
|
import { StringFilterObjectSchema as StringFilterObjectSchema } from './StringFilter.schema';
|
|
import { StringNullableFilterObjectSchema as StringNullableFilterObjectSchema } from './StringNullableFilter.schema';
|
|
import { BigIntFilterObjectSchema as BigIntFilterObjectSchema } from './BigIntFilter.schema';
|
|
import { IntNullableFilterObjectSchema as IntNullableFilterObjectSchema } from './IntNullableFilter.schema';
|
|
import { BoolFilterObjectSchema as BoolFilterObjectSchema } from './BoolFilter.schema';
|
|
import { DateTimeFilterObjectSchema as DateTimeFilterObjectSchema } from './DateTimeFilter.schema'
|
|
|
|
const cloudfilescalarwhereinputSchema = z.object({
|
|
AND: z.union([z.lazy(() => CloudFileScalarWhereInputObjectSchema), z.lazy(() => CloudFileScalarWhereInputObjectSchema).array()]).optional(),
|
|
OR: z.lazy(() => CloudFileScalarWhereInputObjectSchema).array().optional(),
|
|
NOT: z.union([z.lazy(() => CloudFileScalarWhereInputObjectSchema), z.lazy(() => CloudFileScalarWhereInputObjectSchema).array()]).optional(),
|
|
id: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
|
userId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
|
name: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
|
|
mimeType: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
|
|
fileSize: z.union([z.lazy(() => BigIntFilterObjectSchema), z.bigint()]).optional(),
|
|
folderId: z.union([z.lazy(() => IntNullableFilterObjectSchema), z.number().int()]).optional().nullable(),
|
|
isComplete: z.union([z.lazy(() => BoolFilterObjectSchema), z.boolean()]).optional(),
|
|
totalChunks: z.union([z.lazy(() => IntNullableFilterObjectSchema), z.number().int()]).optional().nullable(),
|
|
createdAt: z.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()]).optional(),
|
|
updatedAt: z.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()]).optional()
|
|
}).strict();
|
|
export const CloudFileScalarWhereInputObjectSchema: z.ZodType<Prisma.CloudFileScalarWhereInput> = cloudfilescalarwhereinputSchema as unknown as z.ZodType<Prisma.CloudFileScalarWhereInput>;
|
|
export const CloudFileScalarWhereInputObjectZodSchema = cloudfilescalarwhereinputSchema;
|