Implements a notification system for EmbassyOS

This commit is contained in:
Keagan McClelland
2021-09-13 14:59:19 -06:00
committed by Aiden McClelland
parent 8dc3377bbd
commit c5724f40b7
6 changed files with 290 additions and 1 deletions

View File

@@ -36,4 +36,15 @@ CREATE TABLE IF NOT EXISTS certificates
lookup_string TEXT UNIQUE,
created_at TEXT,
updated_at TEXT
);
);
CREATE TABLE IF NOT EXISTS notifications
(
id INTEGER PRIMARY KEY,
package_id TEXT,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
code INTEGER NOT NULL,
level TEXT NOT NULL,
title TEXT NOT NULL,
message TEXT NOT NULL,
data TEXT
)