fix: add status column to sessions table in schema.sql for new databases

This commit is contained in:
LemonNexus 2026-02-11 10:50:46 +00:00
parent e86dd7c358
commit 82a7a5fc86
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ CREATE TABLE IF NOT EXISTS sessions (
project_id INTEGER NOT NULL,
started_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
ended_at TIMESTAMP,
status TEXT DEFAULT 'running' CHECK (status IN ('running', 'paused', 'completed', 'stopped')),
duration_seconds INTEGER DEFAULT 0,
total_spent_ped REAL DEFAULT 0.0, -- Decimal stored as REAL, handled in code
total_return_ped REAL DEFAULT 0.0,