เช็ค สกจ
This commit is contained in:
parent
87b6fdf0d2
commit
5440bce257
5 changed files with 101 additions and 99 deletions
|
|
@ -94,11 +94,11 @@ export class Command extends EntityBase {
|
|||
|
||||
@Column({
|
||||
nullable: true,
|
||||
default: null,
|
||||
type: "boolean",
|
||||
comment: "คำสั่งกรุงเทพมหานคร",
|
||||
length: 20,
|
||||
default: null,
|
||||
})
|
||||
isBangkok: boolean;
|
||||
isBangkok: string;
|
||||
|
||||
@Column({
|
||||
comment: "สถานะบัญชีแนบท้าย",
|
||||
|
|
|
|||
|
|
@ -24,10 +24,9 @@ export class State extends EntityBase {
|
|||
@Column({
|
||||
nullable: true,
|
||||
comment: "ลำดับ",
|
||||
length: 255,
|
||||
default: null,
|
||||
})
|
||||
order: string;
|
||||
order: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue