update posts table schema to include title and author_username fields

This commit is contained in:
2026-01-11 14:44:34 +00:00
parent 5e1bccb2a8
commit d3c985ba1f

View File

@@ -9,7 +9,8 @@ CREATE TABLE IF NOT EXISTS ethnograph.users (
CREATE TABLE IF NOT EXISTS ethnograph.posts ( CREATE TABLE IF NOT EXISTS ethnograph.posts (
id SERIAL PRIMARY KEY, id SERIAL PRIMARY KEY,
user_id INTEGER REFERENCES ethnograph.users(id), title TEXT NOT NULL,
content TEXT NOT NULL, content TEXT NOT NULL,
author_username VARCHAR(255),
created_utc TIMESTAMP NOT NULL created_utc TIMESTAMP NOT NULL
); );