-- Migration 086: Add external event fields to norda_events
-- For KIG integration: external events from ARP, KIG, partner organizations

ALTER TABLE norda_events ADD COLUMN IF NOT EXISTS is_external BOOLEAN DEFAULT FALSE;
ALTER TABLE norda_events ADD COLUMN IF NOT EXISTS external_url VARCHAR(1000);
ALTER TABLE norda_events ADD COLUMN IF NOT EXISTS external_source VARCHAR(255);

-- Grant permissions
GRANT ALL ON TABLE norda_events TO nordabiz_app;
