11 lines
303 B
SQL
11 lines
303 B
SQL
-- name: CreateFeedFollow :one
|
|
INSERT INTO feed_follows (created_at, updated_at, user_id, feed_id)
|
|
VALUES (?, ?, ?, ?)
|
|
RETURNING *;
|
|
|
|
-- name: GetFeedFollowsByUser :many
|
|
SELECT * FROM feed_follows WHERE user_id = ?;
|
|
|
|
-- name: DeleteFeedFollow :exec
|
|
DELETE FROM feed_follows WHERE id = ? AND user_id = ?;
|