From 469e469dd3f77bc8cd22bbcd87017eb69569ac23 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 27 Oct 2025 01:32:19 +0900 Subject: feat(backend): Create users table --- backend/db/queries/feeds.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'backend/db/queries/feeds.sql') diff --git a/backend/db/queries/feeds.sql b/backend/db/queries/feeds.sql index 8445532..3b5b882 100644 --- a/backend/db/queries/feeds.sql +++ b/backend/db/queries/feeds.sql @@ -1,10 +1,10 @@ -- name: GetFeed :one -SELECT id, url, title, fetched_at, is_subscribed +SELECT id, url, title, fetched_at, is_subscribed, user_id FROM feeds WHERE id = ?; -- name: GetFeeds :many -SELECT id, url, title, fetched_at, is_subscribed +SELECT id, url, title, fetched_at, is_subscribed, user_id FROM feeds WHERE is_subscribed = 1 ORDER BY id; @@ -24,12 +24,12 @@ DELETE FROM feeds WHERE id = ?; -- name: GetFeedByURL :one -SELECT id, url, title, fetched_at, is_subscribed +SELECT id, url, title, fetched_at, is_subscribed, user_id FROM feeds WHERE url = ?; -- name: GetFeedsToFetch :many -SELECT id, url, fetched_at +SELECT id, url, fetched_at, user_id FROM feeds WHERE is_subscribed = 1; -- cgit v1.2.3-70-g09d2