update ondelete cascade
This commit is contained in:
@ -37,7 +37,7 @@ export class User {
|
|||||||
})
|
})
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
@ManyToMany(() => UserRole, { onDelete: 'RESTRICT' })
|
@ManyToMany(() => UserRole, { onDelete: 'CASCADE' })
|
||||||
@JoinTable()
|
@JoinTable()
|
||||||
roles: UserRole[]
|
roles: UserRole[]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user