#13 - browse articles

This commit is contained in:
2025-03-11 16:08:34 +02:00
parent f561eb4c34
commit 80602bf04f
10 changed files with 265 additions and 1 deletions

14
sql/schema/0005_posts.sql Normal file
View File

@@ -0,0 +1,14 @@
-- +goose Up
CREATE TABLE posts(
id UUID PRIMARY KEY,
created_at TIMESTAMP not null DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP not null,
title VARCHAR(128) not null,
url VARCHAR(512) not null UNIQUE,
description TEXT not null,
published_at TIMESTAMP not null ,
feed_id UUID not null REFERENCES feeds(id) ON DELETE CASCADE
);
-- +goose Down
DROP TABLE posts;