Migration add fields isDeleted #210
This commit is contained in:
parent
3c9e3a1bb6
commit
65e3740cc2
82 changed files with 499 additions and 180 deletions
|
|
@ -100,6 +100,13 @@ export class ProfileLeave extends EntityBase {
|
|||
})
|
||||
isEntry: boolean;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
comment: "สถานะลบข้อมูล",
|
||||
default: false,
|
||||
})
|
||||
isDeleted: boolean;
|
||||
|
||||
@OneToMany(() => ProfileLeaveHistory, (v) => v.profileLeave)
|
||||
histories: ProfileLeaveHistory[];
|
||||
|
||||
|
|
@ -124,6 +131,13 @@ export class ProfileLeaveHistory extends ProfileLeave {
|
|||
})
|
||||
profileLeaveId: string;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
comment: "สถานะลบข้อมูล",
|
||||
default: false,
|
||||
})
|
||||
isDeleted: boolean = false;
|
||||
|
||||
@ManyToOne(() => ProfileLeave, (v) => v.histories)
|
||||
profileLeave: ProfileLeave;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue