เพิ่มฟิลด์
This commit is contained in:
parent
4cccf6f685
commit
693afa4e5f
4 changed files with 18 additions and 3 deletions
|
|
@ -9,6 +9,7 @@ import { OrgChild2 } from "./OrgChild2";
|
|||
import { OrgChild3 } from "./OrgChild3";
|
||||
import { OrgChild4 } from "./OrgChild4";
|
||||
import { Profile } from "./Profile";
|
||||
import { AuthRole } from "./AuthRole";
|
||||
|
||||
enum PosMasterLine {
|
||||
MAIN = "MAIN",
|
||||
|
|
@ -170,6 +171,16 @@ export class PosMaster extends EntityBase {
|
|||
})
|
||||
orgRevisionId: string; //fk
|
||||
|
||||
@Column({
|
||||
length: 40,
|
||||
comment: "คีย์นอก(FK)ของตาราง authRole",
|
||||
})
|
||||
authRoleId: string;
|
||||
|
||||
@OneToOne(() => AuthRole, (authRole) => authRole.posMaster)
|
||||
@JoinColumn({ name: "authRoleId" })
|
||||
authRole: AuthRole;
|
||||
|
||||
@ManyToOne(() => OrgRevision, (orgRevision) => orgRevision.posMasters)
|
||||
@JoinColumn({ name: "orgRevisionId" })
|
||||
orgRevision: OrgRevision;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue