api รักษาการแทน
This commit is contained in:
parent
f7c553ec1d
commit
9de005c7ae
8 changed files with 752 additions and 69 deletions
44
src/entities/PosMasterAct.ts
Normal file
44
src/entities/PosMasterAct.ts
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
import { Entity, Column, ManyToOne, JoinColumn, OneToOne, OneToMany, ManyToMany } from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
import { PosMaster } from "./PosMaster";
|
||||
|
||||
@Entity("posMasterAct")
|
||||
export class PosMasterAct extends EntityBase {
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ลำดับที่แสดงผล",
|
||||
default: null,
|
||||
})
|
||||
posMasterOrder: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
default: null,
|
||||
length: 40,
|
||||
comment: "คีย์นอก(FK)ของตาราง posMaster",
|
||||
})
|
||||
posMasterId: string;
|
||||
|
||||
@ManyToOne(() => PosMaster, (posMaster) => posMaster.posMasterActs)
|
||||
@JoinColumn({ name: "posMasterId" })
|
||||
posMaster: PosMaster;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
default: null,
|
||||
length: 40,
|
||||
comment: "คีย์นอก(FK)ของตาราง posMasterChild",
|
||||
})
|
||||
posMasterChildId: string;
|
||||
|
||||
@ManyToOne(() => PosMaster, (posMaster) => posMaster.posMasterActChilds)
|
||||
@JoinColumn({ name: "posMasterChildId" })
|
||||
posMasterChild: PosMaster;
|
||||
}
|
||||
|
||||
export class CreatePosMaster {
|
||||
@Column()
|
||||
posMasterNoPrefix: string;
|
||||
}
|
||||
|
||||
export type UpdatePosMaster = Partial<PosMaster>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue