diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-10-27 01:32:19 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-10-27 01:42:51 +0900 |
| commit | 469e469dd3f77bc8cd22bbcd87017eb69569ac23 (patch) | |
| tree | b8f83ed851d9072bb7f4e5c5215cf0ab9afe56b2 /backend/db/queries/feeds.sql | |
| parent | ce9f81abd531707b7341a5d92544954ab18ac390 (diff) | |
| download | feedaka-469e469dd3f77bc8cd22bbcd87017eb69569ac23.tar.gz feedaka-469e469dd3f77bc8cd22bbcd87017eb69569ac23.tar.zst feedaka-469e469dd3f77bc8cd22bbcd87017eb69569ac23.zip | |
feat(backend): Create users table
Diffstat (limited to 'backend/db/queries/feeds.sql')
| -rw-r--r-- | backend/db/queries/feeds.sql | 8 |
1 files changed, 4 insertions, 4 deletions
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; |
