mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
16 lines
384 B
SQL
16 lines
384 B
SQL
CREATE TABLE logs (
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
ts INTEGER NOT NULL,
|
|
ts_nanos INTEGER NOT NULL,
|
|
level TEXT NOT NULL,
|
|
target TEXT NOT NULL,
|
|
message TEXT,
|
|
thread_id TEXT,
|
|
module_path TEXT,
|
|
file TEXT,
|
|
line INTEGER
|
|
);
|
|
|
|
CREATE INDEX idx_logs_ts ON logs(ts DESC, ts_nanos DESC, id DESC);
|
|
CREATE INDEX idx_logs_thread_id ON logs(thread_id);
|