aboutsummaryrefslogtreecommitdiffstats
path: root/schema.sql
blob: 3925ec6428cd22a6c1c9f72095644fc3b4289c75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- spam table
create table IF not exists spam
(
    user    TEXT,
    domain  TEXT,
    ts      TEXT,
    message TEXT,
    primary key (domain, ts)
);

-- indicies
create index if not exists domain_tx_idx
    on spam (domain, ts);

create index if not exists user_domain_idx
    on spam (user, domain);