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