summaryrefslogtreecommitdiff
path: root/sw/schema.sql
blob: 97f4785450a15b74ab01659db5ecd150d09e2e86 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
drop table if exists inbox;

create table inbox (
  id integer primary key,

  recipient text,
  received text,

  ap_content text
);

drop table if exists outbox;

create table outbox (
  sender text,
  sent text,

  ap_content text
);

drop table if exists items;

create table items (
  id integer primary key,

  created text,
  updated text,

  content text
);

drop table if exists users;

create table users (
  id integer primary key,
  username text unique not null,
  password text not null,
  inbox_size integer default 0,
  outbox_size integer default 0,

  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
);