integrity: add integrity check fields and initial UI
This commit is contained in:
@@ -62,7 +62,7 @@ CREATE TABLE IF NOT EXISTS tokens(
|
||||
scopeJson TEXT,
|
||||
expires BIGINT NOT NULL, // FIXME: make this a timestamp
|
||||
lastUsedTime TIMESTAMP NULL,
|
||||
allowedIpRanges TEXT NULL,
|
||||
allowedIpRanges TEXT,
|
||||
PRIMARY KEY(accessToken));
|
||||
|
||||
CREATE TABLE IF NOT EXISTS apps(
|
||||
@@ -162,8 +162,13 @@ CREATE TABLE IF NOT EXISTS backups(
|
||||
siteId VARCHAR(128) NOT NULL,
|
||||
integrityJson TEXT, /* { signature } */
|
||||
statsJson TEXT,
|
||||
integrityCheckTaskId INTEGER, /* task id while integrity check is running */
|
||||
lastIntegrityCheckTime TIMESTAMP NULL, /* compared to task time, this is the result time */
|
||||
integrityCheckStatus VARCHAR(16) NULL, /* 'passed' | 'failed' */
|
||||
integrityCheckResultJson TEXT, /* per backup result. if stored in tasks, this would have to be aggregated */
|
||||
|
||||
FOREIGN KEY(siteId) REFERENCES backupSites(id),
|
||||
FOREIGN KEY(integrityCheckTaskId) REFERENCES tasks(id),
|
||||
INDEX creationTime_index (creationTime),
|
||||
PRIMARY KEY (id));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user