summary refs log tree commit diff
path: root/util/src/entities/Application.ts
diff options
context:
space:
mode:
Diffstat (limited to 'util/src/entities/Application.ts')
-rw-r--r--util/src/entities/Application.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/src/entities/Application.ts b/util/src/entities/Application.ts
index 2092cd4e..fab3d93f 100644
--- a/util/src/entities/Application.ts
+++ b/util/src/entities/Application.ts
@@ -41,7 +41,9 @@ export class Application extends BaseClass {
 	verify_key: string;
 
 	@JoinColumn({ name: "team_id" })
-	@ManyToOne(() => Team)
+	@ManyToOne(() => Team, {
+		onDelete: "CASCADE",
+	})
 	team?: Team;
 
 	@JoinColumn({ name: "guild_id" })