เพิ่มฟิวคำสั่ง

This commit is contained in:
kittapath 2024-09-23 16:16:59 +07:00
parent 90f754c0bd
commit 963a76df10
5 changed files with 51 additions and 3 deletions

View file

@ -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;

View file

@ -59,6 +59,13 @@ export class CommandSys {
})
sysDescription: string;
@Column({
nullable: true,
comment: "ลำดับแสดงผล",
default: null,
})
order: number;
@OneToMany(() => CommandType, (commandType) => commandType.commandTypeSys)
commandTypes: CommandType[];