From ba1e0c904f810193f25d4f88cc2bb168f1d625fe Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Mon, 27 Oct 2025 03:00:27 +0900
Subject: feat(backend): Make feeds.user_id column non-null

---
 backend/db/schema.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'backend/db/schema.sql')

diff --git a/backend/db/schema.sql b/backend/db/schema.sql
index e1260b0..adf3b37 100644
--- a/backend/db/schema.sql
+++ b/backend/db/schema.sql
@@ -13,7 +13,7 @@ CREATE TABLE IF NOT EXISTS feeds (
     title         TEXT NOT NULL,
     fetched_at    TEXT NOT NULL,
     is_subscribed INTEGER NOT NULL DEFAULT 1,
-    user_id       INTEGER REFERENCES users(id) ON DELETE CASCADE
+    user_id       INTEGER NOT NULL REFERENCES users(id) ON DELETE CASCADE
 );
 
 -- Articles
-- 
cgit v1.2.3-70-g09d2

