mirror of
https://github.com/usememos/memos.git
synced 2024-11-18 20:51:21 +08:00
848ecd99ee
chore: format sql
9 lines
No EOL
322 B
SQL
9 lines
No EOL
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 '{}'
|
|
); |