update entity

This commit is contained in:
AdisakKanthawilang 2025-08-22 11:44:44 +07:00
parent 832ad6f76c
commit dcd032b7f5
2 changed files with 11 additions and 1 deletions

View file

@ -104,9 +104,12 @@ export class CreatePosDict {
@Column()
isSpecial: boolean;
@Column()
positionIsSelected?: boolean | null;
@Column()
orderNo?: number | undefined;
}
export class CreatePosDictExe {

View file

@ -77,6 +77,13 @@ export class Position extends EntityBase {
})
isSpecial: boolean;
@Column({
comment: "ลำดับตำแหน่งภายใน 1 posMasterId",
nullable: true,
default: null,
})
orderNo: number;
@ManyToOne(() => PosMaster, (posMaster) => posMaster)
@JoinColumn({ name: "posMasterId" })
posMaster: PosMaster;