Files
llmgw/internal/store/migrations/sqlite/0020_audit.sql
T

15 lines
530 B
SQL

-- Who changed what, from where: every change through the admin API and the
-- administration pages. Detail is the request's fields with anything secret
-- taken out; status is how it ended.
CREATE TABLE audit_events (
id INTEGER PRIMARY KEY AUTOINCREMENT,
ts INTEGER NOT NULL,
actor TEXT NOT NULL,
source TEXT NOT NULL,
action TEXT NOT NULL,
target TEXT NOT NULL DEFAULT '',
detail TEXT NOT NULL DEFAULT '',
status INTEGER NOT NULL DEFAULT 0
);
CREATE INDEX audit_events_ts ON audit_events (ts);