api จัดการผู้ใช้งาน

This commit is contained in:
Bright 2024-11-11 18:13:11 +07:00
parent 6320f4d7db
commit 855639bd7f
6 changed files with 335 additions and 46 deletions

View file

@ -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[];
}

View file

@ -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[];
}