ปรับ relation
This commit is contained in:
parent
bfe7daa63d
commit
7fca1e320b
4 changed files with 25 additions and 6 deletions
|
|
@ -25,11 +25,11 @@ export class AuthRole extends EntityBase {
|
|||
@OneToMany(() => AuthRoleAttr, (authRoleAttr) => authRoleAttr.authRoleAttrForRole)
|
||||
authRoles: AuthRoleAttr[];
|
||||
|
||||
@OneToOne(() => PosMaster, (posMaster) => posMaster.authRole)
|
||||
posMaster: PosMaster;
|
||||
@OneToMany(() => PosMaster, (posMaster) => posMaster.authRole)
|
||||
posMaster: PosMaster[];
|
||||
|
||||
@OneToOne(() => EmployeePosMaster, (posMasters) => posMasters.authRole)
|
||||
posMasters: EmployeePosMaster;
|
||||
@OneToMany(() => EmployeePosMaster, (posMasters) => posMasters.authRole)
|
||||
posMasterEmp: EmployeePosMaster[];
|
||||
}
|
||||
|
||||
export class CreateAuthRole {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue