prant_children entity correction
This commit is contained in:
parent
5900b73556
commit
ff1171950b
@ -4,13 +4,13 @@ import {
|
||||
import { Parents } from './parents.entity';
|
||||
import { Children } from './children.entity';
|
||||
|
||||
@Entity('enfants_parents')
|
||||
@Entity('enfants_parents', { schema: 'public' })
|
||||
export class ParentsChildren {
|
||||
@PrimaryColumn('uuid', { name: 'id_parent' })
|
||||
id_parent: string;
|
||||
parentId: string;
|
||||
|
||||
@PrimaryColumn('uuid', { name: 'id_enfant' })
|
||||
id_enfant: string;
|
||||
enfantId: string;
|
||||
|
||||
@ManyToOne(() => Parents, p => p.parentChildren, { onDelete: 'CASCADE' })
|
||||
@JoinColumn({ name: 'id_parent', referencedColumnName: 'user_id' })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user