events: Add updated_at field

This commit is contained in:
Lennart
2024-07-27 14:38:39 +02:00
parent 9978542c69
commit 21fe841ef1
2 changed files with 3 additions and 3 deletions

View File

@@ -15,6 +15,7 @@ CREATE TABLE events (
cid TEXT NOT NULL,
uid TEXT NOT NULL,
ics TEXT NOT NULL,
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP,
deleted_at DATETIME,
PRIMARY KEY (principal, cid, uid),
FOREIGN KEY (principal, cid) REFERENCES calendars(principal, id)