no message
This commit is contained in:
parent
6055802f10
commit
ae249ebc8e
5 changed files with 397 additions and 8 deletions
21
src/entities/RoleKeycloak.ts
Normal file
21
src/entities/RoleKeycloak.ts
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import { Entity, Column, ManyToMany } from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
import { Profile } from "./Profile";
|
||||
import { ProfileEmployee } from "./ProfileEmployee";
|
||||
|
||||
@Entity("roleKeycloak")
|
||||
export class RoleKeycloak extends EntityBase {
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ชื่อ role",
|
||||
length: 255,
|
||||
default: null,
|
||||
})
|
||||
name: string;
|
||||
|
||||
@ManyToMany(() => Profile, (profile) => profile.roleKeycloaks)
|
||||
profiles: Profile[];
|
||||
|
||||
@ManyToMany(() => ProfileEmployee, (profileEmployee) => profileEmployee.roleKeycloaks)
|
||||
profileEmployees: ProfileEmployee[];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue