Skip to content

Instantly share code, notes, and snippets.

@aquilax
Created September 24, 2014 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aquilax/1ec349f551b27d43efeb to your computer and use it in GitHub Desktop.
Save aquilax/1ec349f551b27d43efeb to your computer and use it in GitHub Desktop.
scif_sqlite3_schema
CREATE TABLE edomain (
id INTEGER PRIMARY KEY AUTOINCREMENT,
domain_id integer DEFAULT 0,
url character varying(200),
title character varying(50),
status integer DEFAULT 1,
pre_text text,
post_text text,
analytics character varying(15),
header_text text
);
CREATE TABLE forum (
id INTEGER PRIMARY KEY AUTOINCREMENT,
domain_id integer DEFAULT 0,
title character varying(50) DEFAULT '',
body text,
status smallint DEFAULT (1),
sorder smallint DEFAULT (1),
created timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
oid integer DEFAULT 0,
updated timestamp without time zone,
topics integer DEFAULT 0,
group_name character varying(30)
);
CREATE TABLE post (
id INTEGER PRIMARY KEY AUTOINCREMENT,
pid integer DEFAULT 0,
forum_id integer DEFAULT 0,
title character varying(150) DEFAULT '',
tripcode character varying(10) DEFAULT '',
body text,
status smallint DEFAULT (0),
created timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
updated timestamp without time zone,
oid integer DEFAULT 0,
topics integer DEFAULT 0
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment