Fix Entity
This commit is contained in:
parent
67c54e3273
commit
b7ca6795cb
6 changed files with 49 additions and 35 deletions
|
|
@ -4,7 +4,6 @@ import { ProfileFamilyMother } from "./ProfileFamilyMother";
|
|||
|
||||
@Entity("profileFamilyMotherHistory")
|
||||
export class ProfileFamilyMotherHistory extends EntityBase {
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
default: null,
|
||||
|
|
@ -55,7 +54,7 @@ export class ProfileFamilyMotherHistory extends EntityBase {
|
|||
})
|
||||
profileFamilyMotherId: string;
|
||||
|
||||
@ManyToOne(() => ProfileFamilyMother, (v) => v.profileFamilyMother)
|
||||
@ManyToOne(() => ProfileFamilyMother, (v) => v.histories)
|
||||
@JoinColumn({ name: "profileFamilyMotherId" })
|
||||
histories: ProfileFamilyMother;
|
||||
profileFamilyMother: ProfileFamilyMother;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue