17 lines
663 B
TypeScript
17 lines
663 B
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
|
|
|
|
const makeSchema = () => z.object({
|
|
id: z.number().int().optional(),
|
|
filename: z.string(),
|
|
originalName: z.string(),
|
|
mimeType: z.string(),
|
|
fileSize: z.bigint(),
|
|
filePath: z.string(),
|
|
uploadedAt: z.coerce.date().optional(),
|
|
updatedAt: z.coerce.date().optional()
|
|
}).strict();
|
|
export const PatientDocumentCreateManyPatientInputObjectSchema: z.ZodType<Prisma.PatientDocumentCreateManyPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientDocumentCreateManyPatientInput>;
|
|
export const PatientDocumentCreateManyPatientInputObjectZodSchema = makeSchema();
|