feat: Add farba field and company details to AI Kurzy module

- Add farba (color) field to kurzy schema and Zod validation
- Add company detail fields (firma_ico, firma_dic, firma_ic_dph, firma_sidlo) to ucastnici
- Remove console logs from ai-kurzy service
- Add SQL migration scripts for schema updates and data

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
richardtekula
2026-01-21 14:27:03 +01:00
parent 4089bb4be2
commit 826fd467bc
5 changed files with 197 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
-- ============================================================
-- 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;