migrate responsibility

This commit is contained in:
Kittapath 2024-05-14 15:29:05 +07:00
parent 6311c9cb0d
commit 2eee5404a1
11 changed files with 285 additions and 37 deletions

View file

@ -21,9 +21,17 @@ import { ProfileGovernment } from "./ProfileGovernment";
import { Province } from "./Province";
import { SubDistrict } from "./SubDistrict";
import { District } from "./District";
import { ProfileAvatar } from "./ProfileAvatar";
@Entity("profile")
export class Profile extends EntityBase {
@Column({
nullable: true,
comment: "รูปถ่าย",
default: null,
})
avatar: string;
@Column({
nullable: true,
comment: "ยศ",
@ -294,6 +302,9 @@ export class Profile extends EntityBase {
@OneToMany(() => ProfileOther, (profileOther) => profileOther.profile)
profileOthers: ProfileOther[];
@OneToMany(() => ProfileAvatar, (profileAvatar) => profileAvatar.profile)
profileAvatars: ProfileAvatar[];
@OneToMany(() => ProfileFamilyHistory, (profileFamily) => profileFamily.profile)
profileFamily: ProfileFamilyHistory[];
@ -576,35 +587,35 @@ export class CreateProfileAllFields {
posLevelId: string | null;
posTypeId: string | null;
email: string | null;
phone: string | null;
phone: string | null;
keycloak: string | null;
isProbation: boolean | null;
isLeave : boolean | null;
dateRetire : Date | null;
dateAppoint : Date | null;
dateStart: Date | null;
isLeave: boolean | null;
dateRetire: Date | null;
dateAppoint: Date | null;
dateStart: Date | null;
govAgeAbsent: number | null;
govAgePlus: number | null;
birthDate: Date | null;
reasonSameDate : Date | null;
ethnicity : string | null;
telephoneNumber : string | null;
nationality : string | null;
gender : string | null;
relationship : string | null;
religion : string | null;
bloodGroup : string | null;
registrationAddress : string | null;
registrationProvinceId : string | null;
reasonSameDate: Date | null;
ethnicity: string | null;
telephoneNumber: string | null;
nationality: string | null;
gender: string | null;
relationship: string | null;
religion: string | null;
bloodGroup: string | null;
registrationAddress: string | null;
registrationProvinceId: string | null;
registrationDistrictId: string | null;
registrationSubDistrictId : string | null;
registrationZipCode : string | null;
currentAddress : string | null;
currentProvinceId : string | null;
currentDistrictId : string | null;
currentSubDistrictId : string | null;
currentZipCode : string | null;
};
registrationSubDistrictId: string | null;
registrationZipCode: string | null;
currentAddress: string | null;
currentProvinceId: string | null;
currentDistrictId: string | null;
currentSubDistrictId: string | null;
currentZipCode: string | null;
}
export type UpdateProfile = {
rank?: string | null;