forked from Ynov/ptitspas-ynov-back
correction ùapping id_utilisateur
This commit is contained in:
parent
b809932fc2
commit
78c155c910
@ -13,7 +13,7 @@ export class ParentsChildren {
|
||||
enfantId: string;
|
||||
|
||||
@ManyToOne(() => Parents, p => p.parentChildren, { onDelete: 'CASCADE' })
|
||||
@JoinColumn({ name: 'id_parent', referencedColumnName: 'id_utilisateur' })
|
||||
@JoinColumn({ name: 'id_parent', referencedColumnName: 'user_id' })
|
||||
parent: Parents;
|
||||
|
||||
@ManyToOne(() => Children, c => c.parentLinks, { onDelete: 'CASCADE' })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user