notifications: add context field

This commit is contained in:
Girish Ramakrishnan
2024-12-11 22:29:00 +01:00
parent 701c25d07a
commit d0d0913c70
4 changed files with 23 additions and 13 deletions

View File

@@ -272,6 +272,7 @@ CREATE TABLE IF NOT EXISTS notifications(
message TEXT,
acknowledged BOOLEAN DEFAULT false,
creationTime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
context VARCHAR(128) DEFAULT "", // used along with "type" to create uniqueness
INDEX creationTime_index (creationTime),
FOREIGN KEY(eventId) REFERENCES eventlog(id),