-- Migration 130: User dashboard preferences
-- Stores per-user default dashboard path

CREATE TABLE IF NOT EXISTS user_dashboard_preferences (
    user_id INTEGER PRIMARY KEY REFERENCES users(user_id) ON DELETE CASCADE,
    default_dashboard_path VARCHAR(255) NOT NULL,
    updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

CREATE INDEX IF NOT EXISTS idx_user_dashboard_preferences_path
    ON user_dashboard_preferences(default_dashboard_path);
