-- Create user preferences table
CREATE TABLE IF NOT EXISTS user_preferences (
    user_id TEXT PRIMARY KEY,
    calendar_selected_date TEXT,
    calendar_time_increment INTEGER,
    calendar_view_mode TEXT,
    calendar_theme TEXT,
    calendar_colors TEXT, -- JSON string for calendar color mappings
    updated_at TEXT NOT NULL,
    FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
);