feat: add basic blog features
This commit is contained in:
9
db/migrations/2026-02-22_18:00_create_blog_tables.sql
Normal file
9
db/migrations/2026-02-22_18:00_create_blog_tables.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
CREATE XTENSION IF NOT EXISTS "uuid-ossp";
|
||||
|
||||
CREATE TABLE posts (
|
||||
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
|
||||
title VARCHAR(255) NULL UNIQUE,
|
||||
content TEXT,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
Reference in New Issue
Block a user