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;
|
gender: string;
|
||||||
userRole: string;
|
userRole: string;
|
||||||
userType: string;
|
userType: string;
|
||||||
|
username: string;
|
||||||
retireDate: Date | null;
|
retireDate: Date | null;
|
||||||
startDate: Date | null;
|
startDate: Date | null;
|
||||||
registrationNo: string | null;
|
registrationNo: string | null;
|
||||||
|
|
@ -41,6 +42,8 @@ export type User = {
|
||||||
code: string;
|
code: string;
|
||||||
birthDate?: Date | null;
|
birthDate?: Date | null;
|
||||||
responsibleArea: string;
|
responsibleArea: string;
|
||||||
|
checkpoint?: string | null;
|
||||||
|
checkpointEN?: string | null;
|
||||||
branch: Branch[];
|
branch: Branch[];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -70,9 +73,12 @@ export type UserCreate = {
|
||||||
firstName: string;
|
firstName: string;
|
||||||
userRole: string;
|
userRole: string;
|
||||||
userType: string;
|
userType: string;
|
||||||
|
username: string;
|
||||||
profileImage?: File | null; // required but not strict
|
profileImage?: File | null; // required but not strict
|
||||||
birthDate?: Date | null;
|
birthDate?: Date | null;
|
||||||
responsibleArea: string;
|
responsibleArea?: string | null;
|
||||||
|
checkpoint?: string | null;
|
||||||
|
checkpointEN?: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UserAttachment = {
|
export type UserAttachment = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue