summary refs log tree commit diff
path: root/util/src/entities/Role.ts
diff options
context:
space:
mode:
Diffstat (limited to 'util/src/entities/Role.ts')
-rw-r--r--util/src/entities/Role.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/src/entities/Role.ts b/util/src/entities/Role.ts
index 33c8d272..9fca99a5 100644
--- a/util/src/entities/Role.ts
+++ b/util/src/entities/Role.ts
@@ -10,7 +10,9 @@ export class Role extends BaseClass {
 	guild_id: string;
 
 	@JoinColumn({ name: "guild_id" })
-	@ManyToOne(() => Guild)
+	@ManyToOne(() => Guild, {
+		onDelete: "CASCADE",
+	})
 	guild: Guild;
 
 	@Column()