relation
This commit is contained in:
parent
a7d13ac00b
commit
18510b1419
3 changed files with 32 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ import { OrgChild3 } from "./OrgChild3";
|
|||
import { OrgChild4 } from "./OrgChild4";
|
||||
import { Profile } from "./Profile";
|
||||
import { ProfileEmployee } from "./ProfileEmployee";
|
||||
import { AuthRole } from "./AuthRole";
|
||||
|
||||
enum EmployeePosMasterLine {
|
||||
MAIN = "MAIN",
|
||||
|
|
@ -171,6 +172,16 @@ export class EmployeePosMaster extends EntityBase {
|
|||
})
|
||||
orgRevisionId: string; //fk
|
||||
|
||||
@Column({
|
||||
length: 40,
|
||||
comment: "คีย์นอก(FK)ของตาราง authRole",
|
||||
})
|
||||
authRoleId: string;
|
||||
|
||||
@OneToOne(() => AuthRole, (authRole) => authRole.posMasters)
|
||||
@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