time-wasting-thread-memorial/db/db.sql

16 lines
454 B
SQL

CREATE TABLE IF NOT EXISTS Posts (
id INTEGER PRIMARY KEY
, oid TEXT NOT NULL
, body TEXT NOT NULL
, mdown TEXT NOT NULL
, author TEXT NOT NULL
, page INTEGER
);
CREATE TABLE IF NOT EXISTS Users (
id INTEGER PRIMARY KEY
, oid TEXT UNIQUE NOT NULL
, name TEXT NOT NULL
, avatar_url TEXT NOT NULL
);