เช็ค สกจ

This commit is contained in:
kittapath 2024-10-09 12:53:13 +07:00
parent 87b6fdf0d2
commit 5440bce257
5 changed files with 101 additions and 99 deletions

View file

@ -1,9 +1,6 @@
import { Entity, Column, OneToMany, ManyToOne, JoinColumn } from "typeorm";
import { Entity, Column, OneToMany } from "typeorm";
import { EntityBase } from "./base/Base";
import { State } from "./State";
import { CommandSys } from "./CommandSys";
import { PosLevel } from "./PosLevel";
import { PosType } from "./PosType";
@Entity("workflow")
export class Workflow extends EntityBase {
@ -17,7 +14,7 @@ export class Workflow extends EntityBase {
@Column({
nullable: true,
comment: "ระบบ",
comment: "ระบบ", //PLACEMENT
length: 255,
default: null,
})
@ -26,49 +23,13 @@ export class Workflow extends EntityBase {
@OneToMany(() => State, (state) => state.workflow)
states: State[];
// @Column({
// nullable: true,
// length: 40,
// comment: "คีย์นอก(FK)ของตาราง commandSys",
// default: null,
// })
// commandSysId: string;
// @ManyToOne(() => CommandSys, (commandSys) => commandSys.workflows)
// @JoinColumn({ name: "commandSysId" })
// commandSys: CommandSys;
// @Column({
// nullable: true,
// length: 40,
// comment: "คีย์นอก(FK)ของตาราง posLevel",
// default: null,
// })
// posLevelId: string;
// @ManyToOne(() => PosLevel, (posLevel) => posLevel.workflows)
// @JoinColumn({ name: "posLevelId" })
// posLevel: PosLevel;
// @Column({
// nullable: true,
// length: 40,
// comment: "คีย์นอก(FK)ของตาราง posType",
// default: null,
// })
// posTypeId: string;
// @ManyToOne(() => PosType, (posType) => posType.workflows)
// @JoinColumn({ name: "posTypeId" })
// posType: PosType;
@Column({
nullable: true,
comment: "ชื่อระบบ",
comment: "ชื่อระบบ", //สอบคัดเลือก
length: 100,
default: null,
})
commandSysName: string;
sysName: string;
@Column({
nullable: true,