eventlog: add Json suffix to json fields

This commit is contained in:
Girish Ramakrishnan
2021-11-17 12:21:46 -08:00
parent 7f45e1db06
commit e71d932de0
4 changed files with 29 additions and 10 deletions
+2 -2
View File
@@ -149,8 +149,8 @@ CREATE TABLE IF NOT EXISTS backups(
CREATE TABLE IF NOT EXISTS eventlog(
id VARCHAR(128) NOT NULL,
action VARCHAR(128) NOT NULL,
source TEXT, /* { userId, username, ip }. userId can be null for cron,sysadmin */
data TEXT, /* free flowing json based on action */
sourceJson TEXT, /* { userId, username, ip }. userId can be null for cron,sysadmin */
dataJson TEXT, /* free flowing json based on action */
creationTime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
INDEX creationTime_index (creationTime),