fix: add status column to sessions table in schema.sql for new databases
This commit is contained in:
parent
e86dd7c358
commit
82a7a5fc86
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue