2019-04-09 13:59:33 +02:00
|
|
|
|
2019-08-16 21:13:33 +02:00
|
|
|
create 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);
|
2019-04-19 16:41:21 +02:00
|
|
|
create table donks (honkid integer, fileid integer);
|
2019-05-25 19:34:41 +02:00
|
|
|
create table files(fileid integer primary key, xid text, name text, url text, media text, local integer, content blob);
|
2019-06-14 04:34:05 +02:00
|
|
|
create table honkers (honkerid integer primary key, userid integer, name text, xid text, flavor text, combos text);
|
2019-06-03 06:15:06 +02:00
|
|
|
create table xonkers (xonkerid integer primary key, name text, info text, flavor text);
|
2019-04-20 04:34:39 +02:00
|
|
|
create table zonkers (zonkerid integer primary key, userid integer, name text, wherefore text);
|
2019-04-15 03:35:42 +02:00
|
|
|
create table doovers(dooverid integer primary key, dt text, tries integer, username text, rcpt text, msg blob);
|
2019-04-09 13:59:33 +02:00
|
|
|
|
|
|
|
create index idx_honksxid on honks(xid);
|
2019-04-19 17:08:22 +02:00
|
|
|
create index idx_honksconvoy on honks(convoy);
|
2019-04-09 13:59:33 +02:00
|
|
|
create index idx_honkshonker on honks(honker);
|
2019-07-10 05:45:50 +02:00
|
|
|
create index idx_honksoonker on honks(oonker);
|
2019-04-09 13:59:33 +02:00
|
|
|
create index idx_honkerxid on honkers(xid);
|
2019-06-03 06:15:06 +02:00
|
|
|
create index idx_xonkername on xonkers(name);
|
2019-04-19 17:08:22 +02:00
|
|
|
create index idx_zonkersname on zonkers(name);
|
2019-04-09 13:59:33 +02:00
|
|
|
create index idx_filesxid on files(xid);
|
|
|
|
create index idx_filesurl on files(url);
|
|
|
|
|
2019-04-19 16:41:21 +02:00
|
|
|
create table config (key text, value text);
|
2019-04-09 13:59:33 +02:00
|
|
|
|
2019-06-28 04:15:59 +02:00
|
|
|
create table users (userid integer primary key, username text, hash text, displayname text, about text, pubkey text, seckey text, options text);
|
2019-04-19 16:41:21 +02:00
|
|
|
create table auth (authid integer primary key, userid integer, hash text);
|
|
|
|
CREATE index idxusers_username on users(username);
|
|
|
|
CREATE index idxauth_userid on auth(userid);
|
|
|
|
CREATE index idxauth_hash on auth(hash);
|
2019-04-09 13:59:33 +02:00
|
|
|
|