refactor: user type

This commit is contained in:
puriphatt 2024-04-18 09:05:53 +07:00
parent 1c22c4ce3b
commit f269e4ac5d

View file

@ -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 = {