เพิ่มฟิวคำสั่ง
This commit is contained in:
parent
90f754c0bd
commit
963a76df10
5 changed files with 51 additions and 3 deletions
|
|
@ -5,6 +5,7 @@ import { CommandSend } from "./CommandSend";
|
|||
|
||||
@Entity("command")
|
||||
export class Command extends EntityBase {
|
||||
// NEW = ใหม่
|
||||
// DRAFT = แบบร่าง
|
||||
// PENDING = รอผู้มีอำนาจ
|
||||
// WAITING = รอออกคำสั่ง
|
||||
|
|
@ -87,6 +88,12 @@ export class Command extends EntityBase {
|
|||
})
|
||||
commandTypeId: string;
|
||||
|
||||
@Column({
|
||||
comment: "สถานะบัญชีแนบท้าย",
|
||||
default: true,
|
||||
})
|
||||
isAttachment: boolean;
|
||||
|
||||
@ManyToOne(() => CommandType, (commandType) => commandType.commands)
|
||||
@JoinColumn({ name: "commandTypeId" })
|
||||
commandType: CommandType;
|
||||
|
|
|
|||
|
|
@ -59,6 +59,13 @@ export class CommandSys {
|
|||
})
|
||||
sysDescription: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ลำดับแสดงผล",
|
||||
default: null,
|
||||
})
|
||||
order: number;
|
||||
|
||||
@OneToMany(() => CommandType, (commandType) => commandType.commandTypeSys)
|
||||
commandTypes: CommandType[];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue