add relation from user->user_profile to speed up UserEntityService.pack and packMany
This commit is contained in:
parent
71f60d519b
commit
23302fe7d8
3 changed files with 32 additions and 8 deletions
|
|
@ -17,7 +17,7 @@ export class MiUserProfile {
|
|||
@PrimaryColumn(id())
|
||||
public userId: MiUser['id'];
|
||||
|
||||
@OneToOne(type => MiUser, {
|
||||
@OneToOne(() => MiUser, user => user.userProfile, {
|
||||
onDelete: 'CASCADE',
|
||||
})
|
||||
@JoinColumn()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue