Files
DentalManagementMHAprilgg/packages/db/shared/schemas/objects/PatientDocumentScalarWhereInput.schema.ts
2026-04-04 22:13:55 -04:00

24 lines
2.0 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 { BigIntFilterObjectSchema as BigIntFilterObjectSchema } from './BigIntFilter.schema';
import { DateTimeFilterObjectSchema as DateTimeFilterObjectSchema } from './DateTimeFilter.schema'
const patientdocumentscalarwhereinputSchema = z.object({
AND: z.union([z.lazy(() => PatientDocumentScalarWhereInputObjectSchema), z.lazy(() => PatientDocumentScalarWhereInputObjectSchema).array()]).optional(),
OR: z.lazy(() => PatientDocumentScalarWhereInputObjectSchema).array().optional(),
NOT: z.union([z.lazy(() => PatientDocumentScalarWhereInputObjectSchema), z.lazy(() => PatientDocumentScalarWhereInputObjectSchema).array()]).optional(),
id: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
patientId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
filename: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
originalName: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
mimeType: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
fileSize: z.union([z.lazy(() => BigIntFilterObjectSchema), z.bigint()]).optional(),
filePath: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
uploadedAt: z.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()]).optional(),
updatedAt: z.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()]).optional()
}).strict();
export const PatientDocumentScalarWhereInputObjectSchema: z.ZodType<Prisma.PatientDocumentScalarWhereInput> = patientdocumentscalarwhereinputSchema as unknown as z.ZodType<Prisma.PatientDocumentScalarWhereInput>;
export const PatientDocumentScalarWhereInputObjectZodSchema = patientdocumentscalarwhereinputSchema;