-- What the calls to Claude cost: one row for each question asked of the provider, with the tokens that were billed and how -- it ended. Nothing of the facts that were sent is kept: no artist, no genre, no name. Rows older than a year are removed. CREATE TABLE claude_usage ( id INTEGER PRIMARY KEY, at INTEGER NOT NULL, -- unix seconds kind TEXT NOT NULL, -- playlist, mix or smart model TEXT NOT NULL, outcome TEXT NOT NULL, -- made, kept or failed reason TEXT NOT NULL DEFAULT '',-- for a failure input_tokens INTEGER NOT NULL DEFAULT 0, output_tokens INTEGER NOT NULL DEFAULT 0, cache_read_tokens INTEGER NOT NULL DEFAULT 0, cache_write_tokens INTEGER NOT NULL DEFAULT 0 ); CREATE INDEX idx_claude_usage_at ON claude_usage(at);