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

16 lines
475 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 TEXT NOT NULL
);
CREATE TABLE IF NOT EXISTS Users (
id INTEGER PRIMARY KEY
, oid TEXT UNIQUE NOT NULL
, name TEXT NOT NULL
, avatar_url TEXT NOT NULL
);