all repos — honk @ 1f3864b61572332414e3bbdd432c3358170c9493

my fork of honk

schema.sql (view raw)

 1
 2create table honks (honkid integer primary key, userid integer, what text, honker text, xid text, rid text, dt text, url text, audience text, noise text, convoy text, whofore integer, format text, precis text, oonker text, flags integer, onts text);
 3create table donks (honkid integer, fileid integer);
 4create table files(fileid integer primary key, xid text, name text, url text, media text, local integer, content blob);
 5create table honkers (honkerid integer primary key, userid integer, name text, xid text, flavor text, combos text);
 6create table xonkers (xonkerid integer primary key, name text, info text, flavor text);
 7create table zonkers (zonkerid integer primary key, userid integer, name text, wherefore text);
 8create table doovers(dooverid integer primary key, dt text, tries integer, username text, rcpt text, msg blob);
 9create table onts (ontology text, honkid integer);
10
11create index idx_honksxid on honks(xid);
12create index idx_honksconvoy on honks(convoy);
13create index idx_honkshonker on honks(honker);
14create index idx_honksoonker on honks(oonker);
15create index idx_honkerxid on honkers(xid);
16create index idx_xonkername on xonkers(name);
17create index idx_zonkersname on zonkers(name);
18create index idx_filesxid on files(xid);
19create index idx_filesurl on files(url);
20create index idx_ontology on onts(ontology);
21
22create table config (key text, value text);
23
24create table users (userid integer primary key, username text, hash text, displayname text, about text, pubkey text, seckey text, options text);
25create table auth (authid integer primary key, userid integer, hash text);
26CREATE index idxusers_username on users(username);
27CREATE index idxauth_userid on auth(userid);
28CREATE index idxauth_hash on auth(hash);
29