sort and add field

This commit is contained in:
AdisakKanthawilang 2025-03-24 17:59:47 +07:00
parent dc9ac66896
commit a47c804969
4 changed files with 69 additions and 1 deletions

View file

@ -17,6 +17,21 @@ export class CommandCode extends EntityBase {
default: null,
})
code: number;
@Column({
nullable: true,
comment: "ลำดับ",
default: null,
})
order: number;
@Column({
nullable: true,
comment: "คำสั่ง",
length: 255,
default: null,
})
caption: string;
}
export class CreateCommandCode {
@ -25,6 +40,12 @@ export class CreateCommandCode {
@Column()
code: number;
@Column()
order: number;
@Column()
caption: string;
}
export type UpdateCommandCode = Partial<CreateCommandCode>;