From 0e4f90e6a82f0fc275d65bf0e4f4c2842052dde9 Mon Sep 17 00:00:00 2001
From: Syndamia <kamen@syndamia.com>
Date: Sun, 2 Feb 2025 13:43:26 +0200
Subject: feat(views/user): Implement account deletion

---
 migrations/00-initial.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'migrations/00-initial.sql')

diff --git a/migrations/00-initial.sql b/migrations/00-initial.sql
index 879b5f1..a4b999f 100644
--- a/migrations/00-initial.sql
+++ b/migrations/00-initial.sql
@@ -15,7 +15,7 @@ CREATE TABLE IF NOT EXISTS Cookies (
     Token   CHAR(36) NOT NULL,
     Expires DATETIME,
     PRIMARY KEY (UID, Token),
-    FOREIGN KEY (UID) REFERENCES Users(UID)
+    FOREIGN KEY (UID) REFERENCES Users(UID) ON DELETE CASCADE
 );
 
 CREATE TABLE IF NOT EXISTS Webpages (
-- 
cgit v1.2.3

