-- Copy paste these SQL commands in your phpMyAdmin or MySQL

-- 1. Check current games table structure
DESCRIBE games;

-- 2. Add winning_color column if missing
ALTER TABLE games ADD COLUMN winning_color VARCHAR(20) NULL;

-- 3. Add completed_at column if missing  
ALTER TABLE games ADD COLUMN completed_at TIMESTAMP NULL;

-- 4. Check final structure
DESCRIBE games;

-- 5. If you get "Duplicate column" error, that's OK - column already exists

-- Your games table should have these columns:
-- id (INT, PRIMARY KEY, AUTO_INCREMENT)
-- status (ENUM 'running','completed')
-- created_at (TIMESTAMP)
-- winning_color (VARCHAR 20, NULL) 
-- completed_at (TIMESTAMP, NULL)