summaryrefslogtreecommitdiff
path: root/sw/schema.sql
blob: d6ee27abd35667c660ae073f8760b7aebdec12b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
drop table if exists inbox;

create table inbox (
  recipient text,
  received int,

  ap_attachment text,
  ap_attributedTo text,
  ap_audience text,
  ap_content text,
  ap_context text,
  ap_name text,
  ap_endTime text,
  ap_generator text,
  ap_icon text,
  ap_image text,
  ap_inReplyTo text,
  ap_location text,
  ap_preview text,
  ap_published text,
  ap_replies text,
  ap_startTime text,
  ap_summary text,
  ap_tag text,
  ap_updated text,
  ap_url text,
  ap_to text,
  ap_bto text,
  ap_cc text,
  ap_bcc text,
  ap_mediaType text,
  ap_duration text,

  ap_actor text,
  ap_object text,
  ap_target text,
  ap_result text,
  ap_origin text,
  ap_instrument text
);

drop table if exists user;

create table user (
  id integer primary key autoincrement,
  username text unique not null,
  password text not null
);