all repos — honk @ e0cc48fd6d5ce43fdced313e4ec943bfb9c9bd95

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);
 3CREATE TABLE donks (honkid integer, fileid integer);
 4CREATE TABLE files(fileid integer primary key, xid text, name text, url text, media text, content blob);
 5CREATE TABLE honkers (honkerid integer primary key, userid integer, name text, xid text, flavor text, pubkey text);
 6create table doovers(dooverid integer primary key, dt text, tries integer, username text, rcpt text, msg blob);
 7
 8create index idx_honksxid on honks(xid);
 9create index idx_honkshonker on honks(honker);
10create index idx_honkerxid on honkers(xid);
11create index idx_filesxid on files(xid);
12create index idx_filesurl on files(url);
13
14CREATE TABLE config (key text, value text);
15
16CREATE TABLE users (userid integer primary key, username text, hash text, displayname text, about text, pubkey text, seckey text);
17CREATE TABLE auth (authid integer primary key, userid integer, hash text);
18CREATE INDEX idxusers_username on users(username);
19CREATE INDEX idxauth_userid on auth(userid);
20CREATE INDEX idxauth_hash on auth(hash);
21