no message

This commit is contained in:
kittapath 2024-11-11 14:48:14 +07:00
parent 6055802f10
commit ae249ebc8e
5 changed files with 397 additions and 8 deletions

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