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