refactor: user type
This commit is contained in:
parent
1c22c4ce3b
commit
f269e4ac5d
1 changed files with 7 additions and 1 deletions
|
|
@ -21,6 +21,7 @@ export type User = {
|
|||
gender: string;
|
||||
userRole: string;
|
||||
userType: string;
|
||||
username: string;
|
||||
retireDate: Date | null;
|
||||
startDate: Date | null;
|
||||
registrationNo: string | null;
|
||||
|
|
@ -41,6 +42,8 @@ export type User = {
|
|||
code: string;
|
||||
birthDate?: Date | null;
|
||||
responsibleArea: string;
|
||||
checkpoint?: string | null;
|
||||
checkpointEN?: string | null;
|
||||
branch: Branch[];
|
||||
};
|
||||
|
||||
|
|
@ -70,9 +73,12 @@ export type UserCreate = {
|
|||
firstName: string;
|
||||
userRole: string;
|
||||
userType: string;
|
||||
username: string;
|
||||
profileImage?: File | null; // required but not strict
|
||||
birthDate?: Date | null;
|
||||
responsibleArea: string;
|
||||
responsibleArea?: string | null;
|
||||
checkpoint?: string | null;
|
||||
checkpointEN?: string | null;
|
||||
};
|
||||
|
||||
export type UserAttachment = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue