update posts table schema to include title and author_username fields
This commit is contained in:
@@ -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
|
||||||
);
|
);
|
||||||
Reference in New Issue
Block a user