CREATE TABLE IF NOT EXISTS logs (
    id        INTEGER PRIMARY KEY AUTOINCREMENT,
    level     TEXT NOT NULL CHECK(level IN ('debug', 'info', 'warning', 'error')),
    ip        TEXT,
    traceback TEXT,
    date DATETIME DEFAULT (datetime('now', 'localtime')),
);
