Migrate เพิ่มฟิลด์ privac + API update status privac #2186
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m0s

This commit is contained in:
harid 2026-01-16 17:54:11 +07:00
parent b8421d29ed
commit f6b03752e1
4 changed files with 146 additions and 0 deletions

View file

@ -421,6 +421,24 @@ export class Profile extends EntityBase {
})
statusCheckEdit: string;
@Column({
comment: "สถานะยืนยัน privacyCheckin",
default: false,
})
privacyCheckin: boolean;
@Column({
comment: "สถานะยืนยัน privacyUser",
default: false,
})
privacyUser: boolean;
@Column({
comment: "สถานะยืนยัน privacyMgt",
default: false,
})
privacyMgt: boolean;
@OneToMany(() => PosMaster, (posMaster) => posMaster.current_holder)
current_holders: PosMaster[];
@ -957,3 +975,8 @@ export type UpdateProfileAddress = {
currentSubDistrictId?: string | null;
currentZipCode?: string | null;
};
export class UpdatePrivacyDto {
system: string;
accept: boolean;
}

View file

@ -688,6 +688,24 @@ export class ProfileEmployee extends EntityBase {
})
statusCheckEdit: string;
@Column({
comment: "สถานะยืนยัน privacyCheckin",
default: false,
})
privacyCheckin: boolean;
@Column({
comment: "สถานะยืนยัน privacyUser",
default: false,
})
privacyUser: boolean;
@Column({
comment: "สถานะยืนยัน privacyMgt",
default: false,
})
privacyMgt: boolean;
@OneToMany(() => ProfileEmployeeInformationHistory, (v) => v.profileEmployeeInformation)
information_histories: ProfileEmployeeInformationHistory[];