-- Migration: Add missing columns to playlists table
-- Adds follower_count and deleted_at for soft delete support

-- Add follower_count column
ALTER TABLE playlists ADD COLUMN IF NOT EXISTS follower_count INTEGER DEFAULT 0;

-- Add deleted_at for soft delete support
ALTER TABLE playlists ADD COLUMN IF NOT EXISTS deleted_at TIMESTAMP WITH TIME ZONE;

-- Index on deleted_at for soft delete queries
CREATE INDEX IF NOT EXISTS idx_playlists_deleted_at ON playlists(deleted_at);

