initial commit
This commit is contained in:
14
packages/db/shared/schemas/variants/pure/PdfGroup.pure.ts
Normal file
14
packages/db/shared/schemas/variants/pure/PdfGroup.pure.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import * as z from 'zod';
|
||||
import { PdfTitleKeySchema } from '../../enums/PdfTitleKey.schema';
|
||||
// prettier-ignore
|
||||
export const PdfGroupModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
title: z.string(),
|
||||
titleKey: PdfTitleKeySchema,
|
||||
createdAt: z.date(),
|
||||
patientId: z.number().int(),
|
||||
patient: z.unknown(),
|
||||
pdfs: z.array(z.unknown())
|
||||
}).strict();
|
||||
|
||||
export type PdfGroupPureType = z.infer<typeof PdfGroupModelSchema>;
|
||||
Reference in New Issue
Block a user