#9 - feed follows

This commit is contained in:
2025-03-11 14:53:10 +02:00
parent ed8b8860b7
commit b7b7a7d55d
12 changed files with 324 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
-- +goose Up
CREATE TABLE feed_follows(
id UUID PRIMARY KEY,
created_at TIMESTAMP not null DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP not null,
user_id UUID not null REFERENCES users(id) ON DELETE CASCADE,
feed_id UUID not null REFERENCES feeds(id) ON DELETE CASCADE,
CONSTRAINT UC_User_Feed UNIQUE(user_id, feed_id)
);
-- +goose Down
DROP TABLE feeds;