-- ============================================================
-- AI KURZY - Company Details & Course Colors Migration
-- Run this FIRST to add new columns
-- ============================================================

-- Add color field to kurzy table
ALTER TABLE "kurzy" ADD COLUMN IF NOT EXISTS "farba" varchar(20);

-- Add company details fields to ucastnici table
ALTER TABLE "ucastnici" ADD COLUMN IF NOT EXISTS "firma_ico" varchar(20);
ALTER TABLE "ucastnici" ADD COLUMN IF NOT EXISTS "firma_dic" varchar(20);
ALTER TABLE "ucastnici" ADD COLUMN IF NOT EXISTS "firma_ic_dph" varchar(25);
ALTER TABLE "ucastnici" ADD COLUMN IF NOT EXISTS "firma_sidlo" text;

-- ============================================================
-- DONE - Now run 03_ai_kurzy_full_data.sql for complete data
-- ============================================================
SELECT 'AI Kurzy schema migration completed!' as status;
SELECT 'Now run 03_ai_kurzy_full_data.sql for complete data' as next_step;
