memos/store/db/migration/prod/0.10/00__activity.sql
boojack 848ecd99ee
chore: format SQL (#987)
chore: format sql
2023-01-22 21:16:03 +08:00

9 lines
322 B
SQL

-- activity
CREATE TABLE activity (
id INTEGER PRIMARY KEY AUTOINCREMENT,
creator_id INTEGER NOT NULL,
created_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')),
type TEXT NOT NULL DEFAULT '',
level TEXT NOT NULL CHECK (level IN ('INFO', 'WARN', 'ERROR')) DEFAULT 'INFO',
payload TEXT NOT NULL DEFAULT '{}'
);