diff options
| author | Tom Harley | 2021-07-06 18:30:31 +0000 |
|---|---|---|
| committer | Tom Harley | 2021-07-06 18:30:31 +0000 |
| commit | 0a0007dee01f2bf17371967105a6ab3c43f85550 (patch) | |
| tree | 9e01b8fa0f677a6bcd650afbb022c67a53ef3b4b /sw/schema.sql | |
| parent | Add nixfmt to project (diff) | |
| download | swap-0a0007dee01f2bf17371967105a6ab3c43f85550.tar.gz swap-0a0007dee01f2bf17371967105a6ab3c43f85550.zip | |
Begin work on adding user interaction
This commit adds support for getting information about a user, as well as accessing their inbox (not actually getting a CollectionPage yet, though).
Currently the inbox does not require the right user to be logged in to access their personal inbox; this should be fixed.
Diffstat (limited to 'sw/schema.sql')
| -rw-r--r-- | sw/schema.sql | 36 |
1 files changed, 32 insertions, 4 deletions
diff --git a/sw/schema.sql b/sw/schema.sql index d6ee27a..a51a7b9 100644 --- a/sw/schema.sql +++ b/sw/schema.sql @@ -39,10 +39,38 @@ create table inbox ( ap_instrument text ); -drop table if exists user; +drop table if exists users; -create table user ( - id integer primary key autoincrement, +create table users ( + id integer primary key, username text unique not null, - password text not null + password text not null, + inbox_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 ); |
