เพิ่มฟิลด์

This commit is contained in:
Bright 2024-06-13 14:18:20 +07:00
parent 4cccf6f685
commit 693afa4e5f
4 changed files with 18 additions and 3 deletions

View file

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