initial commit
This commit is contained in:
16
packages/db/shared/schemas/variants/pure/Staff.pure.ts
Normal file
16
packages/db/shared/schemas/variants/pure/Staff.pure.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import * as z from 'zod';
|
||||
// prettier-ignore
|
||||
export const StaffModelSchema = z.object({
|
||||
id: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
name: z.string(),
|
||||
email: z.string().nullable(),
|
||||
role: z.string(),
|
||||
phone: z.string().nullable(),
|
||||
createdAt: z.date(),
|
||||
user: z.unknown().nullable(),
|
||||
appointments: z.array(z.unknown()),
|
||||
claims: z.array(z.unknown())
|
||||
}).strict();
|
||||
|
||||
export type StaffPureType = z.infer<typeof StaffModelSchema>;
|
||||
Reference in New Issue
Block a user