24 lines
2.4 KiB
TypeScript
24 lines
2.4 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { IntWithAggregatesFilterObjectSchema as IntWithAggregatesFilterObjectSchema } from './IntWithAggregatesFilter.schema';
|
|
import { StringWithAggregatesFilterObjectSchema as StringWithAggregatesFilterObjectSchema } from './StringWithAggregatesFilter.schema';
|
|
import { BigIntWithAggregatesFilterObjectSchema as BigIntWithAggregatesFilterObjectSchema } from './BigIntWithAggregatesFilter.schema';
|
|
import { DateTimeWithAggregatesFilterObjectSchema as DateTimeWithAggregatesFilterObjectSchema } from './DateTimeWithAggregatesFilter.schema'
|
|
|
|
const patientdocumentscalarwherewithaggregatesinputSchema = z.object({
|
|
AND: z.union([z.lazy(() => PatientDocumentScalarWhereWithAggregatesInputObjectSchema), z.lazy(() => PatientDocumentScalarWhereWithAggregatesInputObjectSchema).array()]).optional(),
|
|
OR: z.lazy(() => PatientDocumentScalarWhereWithAggregatesInputObjectSchema).array().optional(),
|
|
NOT: z.union([z.lazy(() => PatientDocumentScalarWhereWithAggregatesInputObjectSchema), z.lazy(() => PatientDocumentScalarWhereWithAggregatesInputObjectSchema).array()]).optional(),
|
|
id: z.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
|
|
patientId: z.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
|
|
filename: z.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]).optional(),
|
|
originalName: z.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]).optional(),
|
|
mimeType: z.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]).optional(),
|
|
fileSize: z.union([z.lazy(() => BigIntWithAggregatesFilterObjectSchema), z.bigint()]).optional(),
|
|
filePath: z.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]).optional(),
|
|
uploadedAt: z.union([z.lazy(() => DateTimeWithAggregatesFilterObjectSchema), z.coerce.date()]).optional(),
|
|
updatedAt: z.union([z.lazy(() => DateTimeWithAggregatesFilterObjectSchema), z.coerce.date()]).optional()
|
|
}).strict();
|
|
export const PatientDocumentScalarWhereWithAggregatesInputObjectSchema: z.ZodType<Prisma.PatientDocumentScalarWhereWithAggregatesInput> = patientdocumentscalarwherewithaggregatesinputSchema as unknown as z.ZodType<Prisma.PatientDocumentScalarWhereWithAggregatesInput>;
|
|
export const PatientDocumentScalarWhereWithAggregatesInputObjectZodSchema = patientdocumentscalarwherewithaggregatesinputSchema;
|