api จัดการผู้ใช้งาน
This commit is contained in:
parent
6320f4d7db
commit
855639bd7f
6 changed files with 335 additions and 46 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { Entity, Column, OneToMany, JoinColumn, ManyToOne, Double, ManyToMany } from "typeorm";
|
||||
import { Entity, Column, OneToMany, JoinColumn, ManyToOne, Double, ManyToMany, JoinTable } from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
import { PosMaster } from "./PosMaster";
|
||||
import { PosLevel } from "./PosLevel";
|
||||
|
|
@ -557,6 +557,7 @@ export class Profile extends EntityBase {
|
|||
permissionProfiles: PermissionOrg[];
|
||||
|
||||
@ManyToMany(() => RoleKeycloak, (roleKeycloak) => roleKeycloak.profiles)
|
||||
@JoinTable()
|
||||
roleKeycloaks: RoleKeycloak[];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { Entity, Column, OneToMany, ManyToOne, Double, ManyToMany } from "typeorm";
|
||||
import { Entity, Column, OneToMany, ManyToOne, Double, ManyToMany, JoinTable } from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
import { EmployeePosLevel } from "./EmployeePosLevel";
|
||||
import { EmployeePosType } from "./EmployeePosType";
|
||||
|
|
@ -810,6 +810,7 @@ export class ProfileEmployee extends EntityBase {
|
|||
dutyTimeEffectiveDate: Date;
|
||||
|
||||
@ManyToMany(() => RoleKeycloak, (roleKeycloak) => roleKeycloak.profileEmployees)
|
||||
@JoinTable()
|
||||
roleKeycloaks: RoleKeycloak[];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue