PostText/migrations/1/up.sql
2022-09-03 01:19:34 -04:00

10 lines
297 B
SQL

CREATE TABLE IF NOT EXISTS threads (
thread_id SERIAL PRIMARY KEY,
thread_date TIMESTAMPTZ DEFAULT NOW(),
thread_author VARCHAR(64),
thread_title VARCHAR(256),
thread_body VARCHAR(4096),
hidden_status BOOLEAN NOT NULL,
flagged_status BOOLEAN NOT NULL
);