update ondelete cascade

This commit is contained in:
2025-01-15 15:44:56 +07:00
parent e576df89c8
commit 682e9ee43d

View File

@ -37,7 +37,7 @@ export class User {
})
name: string;
@ManyToMany(() => UserRole, { onDelete: 'RESTRICT' })
@ManyToMany(() => UserRole, { onDelete: 'CASCADE' })
@JoinTable()
roles: UserRole[]