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

@ -2,6 +2,7 @@ import { Entity, Column, OneToMany } from "typeorm";
import { EntityBase } from "./base/Base";
import { Profile } from "./Profile";
import { ProfileEmployee } from "./ProfileEmployee";
@Entity("relationship")
export class Relationship extends EntityBase {
@ -15,6 +16,9 @@ export class Relationship extends EntityBase {
@OneToMany(() => Profile, (v) => v.relationship)
profile: Profile[];
@OneToMany(() => ProfileEmployee, (v) => v.relationship)
profileEmployee: ProfileEmployee[];
}
export class CreateRelationship {