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