feat: profile employee with more info
This commit is contained in:
parent
4b61617123
commit
3c21e5351a
4 changed files with 126 additions and 92 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue