ปรับ relation
This commit is contained in:
parent
bfe7daa63d
commit
7fca1e320b
4 changed files with 25 additions and 6 deletions
|
|
@ -180,7 +180,7 @@ export class EmployeePosMaster extends EntityBase {
|
|||
})
|
||||
authRoleId: string;
|
||||
|
||||
@OneToOne(() => AuthRole, (authRole) => authRole.posMasters)
|
||||
@ManyToOne(() => AuthRole, (authRole) => authRole.posMasterEmp)
|
||||
@JoinColumn({ name: "authRoleId" })
|
||||
authRole: AuthRole;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue