OTS Stamping support, first pass

This commit is contained in:
kexkey
2018-11-12 12:01:01 -05:00
committed by kexkey
parent 557163f3c4
commit 830e16c12d
22 changed files with 827 additions and 264 deletions

View File

@@ -53,3 +53,13 @@ CREATE TABLE recipient (
inserted_ts INTEGER DEFAULT CURRENT_TIMESTAMP
);
CREATE INDEX idx_recipient_address ON recipient (address);
CREATE TABLE stamp (
id INTEGER PRIMARY KEY AUTOINCREMENT,
hash TEXT UNIQUE,
callbackUrl TEXT,
requested INTEGER DEFAULT FALSE,
upgraded INTEGER DEFAULT FALSE,
calledback INTEGER DEFAULT FALSE,
inserted_ts INTEGER DEFAULT CURRENT_TIMESTAMP
);