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