2025-03-08 00:46:01 +07:00
|
|
|
import { Entity, Column } from "typeorm";
|
|
|
|
|
import { EntityBase } from "./base/Base";
|
|
|
|
|
|
|
|
|
|
@Entity("commandCode")
|
|
|
|
|
export class CommandCode extends EntityBase {
|
|
|
|
|
@Column({
|
|
|
|
|
nullable: true,
|
|
|
|
|
comment: "คำสั่ง",
|
|
|
|
|
length: 255,
|
|
|
|
|
default: null,
|
|
|
|
|
})
|
|
|
|
|
name: string;
|
|
|
|
|
|
|
|
|
|
@Column({
|
|
|
|
|
nullable: true,
|
|
|
|
|
comment: "HRMS Id",
|
|
|
|
|
default: null,
|
|
|
|
|
})
|
|
|
|
|
code: number;
|
2025-03-24 17:59:47 +07:00
|
|
|
|
|
|
|
|
@Column({
|
|
|
|
|
nullable: true,
|
|
|
|
|
comment: "ลำดับ",
|
|
|
|
|
default: null,
|
|
|
|
|
})
|
|
|
|
|
order: number;
|
|
|
|
|
|
|
|
|
|
@Column({
|
|
|
|
|
nullable: true,
|
|
|
|
|
comment: "คำสั่ง",
|
|
|
|
|
length: 255,
|
|
|
|
|
default: null,
|
|
|
|
|
})
|
|
|
|
|
caption: string;
|
2025-03-08 00:46:01 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class CreateCommandCode {
|
|
|
|
|
@Column()
|
|
|
|
|
name: string;
|
|
|
|
|
|
|
|
|
|
@Column()
|
|
|
|
|
code: number;
|
2025-03-24 17:59:47 +07:00
|
|
|
|
|
|
|
|
@Column()
|
|
|
|
|
order: number;
|
|
|
|
|
|
|
|
|
|
@Column()
|
|
|
|
|
caption: string;
|
2025-03-08 00:46:01 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type UpdateCommandCode = Partial<CreateCommandCode>;
|