feat: profile employee with more info

This commit is contained in:
Methapon2001 2024-03-21 11:28:02 +07:00
parent 4b61617123
commit 3c21e5351a
4 changed files with 126 additions and 92 deletions

View file

@ -1,6 +1,7 @@
import { Entity, Column, OneToMany } from "typeorm";
import { EntityBase } from "./base/Base";
import { Profile } from "./Profile";
import { ProfileEmployee } from "./ProfileEmployee";
@Entity("gender")
export class Gender extends EntityBase {
@ -14,6 +15,9 @@ export class Gender extends EntityBase {
@OneToMany(() => Profile, (v) => v.gender)
profile: Profile[];
@OneToMany(() => ProfileEmployee, (v) => v.gender)
profileEmployee: ProfileEmployee[];
}
export class CreateGender {