From 57e7488149ee093e34774d83ffe161fb305a7dde Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Fri, 9 Jul 2021 15:16:54 +0000 Subject: Add basic inbox/outbox functionality Lots of added TODOs, and very little test coverage for the new functions. Next step is to get 100% coverage of what we have so far. --- sw/schema.sql | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'sw/schema.sql') diff --git a/sw/schema.sql b/sw/schema.sql index a51a7b9..409729c 100644 --- a/sw/schema.sql +++ b/sw/schema.sql @@ -2,7 +2,7 @@ drop table if exists inbox; create table inbox ( recipient text, - received int, + received text, ap_attachment text, ap_attributedTo text, @@ -39,6 +39,26 @@ create table inbox ( ap_instrument 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 ( -- cgit v1.2.1