relation
This commit is contained in:
parent
48e7aa0906
commit
9b18610822
2 changed files with 9 additions and 0 deletions
|
|
@ -2,6 +2,7 @@ import { Entity, Column, OneToMany, ManyToOne, JoinColumn } from "typeorm";
|
|||
import { EntityBase } from "./base/Base";
|
||||
import { ProfileChangeNameHistory } from "./ProfileChangeNameHistory";
|
||||
import { ProfileEmployee } from "./ProfileEmployee";
|
||||
import { Profile } from "./Profile";
|
||||
// import { ProfileChangeNameHistory } from "./ProfileChangeNameHistory";
|
||||
|
||||
@Entity("profileChangeName")
|
||||
|
|
@ -85,6 +86,10 @@ export class ProfileChangeName extends EntityBase {
|
|||
@ManyToOne(() => ProfileEmployee, (ProfileEmployee) => ProfileEmployee.profileChangeNames)
|
||||
@JoinColumn({ name: "profileEmployeeId" })
|
||||
profileEmployee: ProfileEmployee;
|
||||
|
||||
@ManyToOne(() => Profile, (Profile) => Profile.profileChangeNames)
|
||||
@JoinColumn({ name: "profileId" })
|
||||
profile: Profile;
|
||||
}
|
||||
|
||||
export class CreateProfileChangeName {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue