-- Migration: 021_add_agent_marketplace
-- Adds is_public boolean column to agents table for Agent Marketplace feature.
-- Agents must explicitly opt-in to marketplace listing (default false).

ALTER TABLE agents ADD COLUMN IF NOT EXISTS is_public BOOLEAN NOT NULL DEFAULT FALSE;

CREATE INDEX IF NOT EXISTS idx_agents_is_public ON agents (is_public) WHERE is_public = TRUE;
