nordabiz/database/migrations/add_wizard_columns.sql
Maciej Pienczyn 5d30cc7cd5
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
feat(admin): add company creation wizard — 5-step guided flow for office managers
Allows Kierownik Biura to independently add new member companies via NIP lookup,
registry data enrichment (KRS/CEIDG), logo discovery, SEO/GBP/Social audits.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 11:57:51 +02:00

10 lines
401 B
SQL

-- Migration: Add company wizard columns
-- Date: 2026-04-03
-- Purpose: Support multi-step company creation wizard
ALTER TABLE companies ADD COLUMN IF NOT EXISTS wizard_step INTEGER;
ALTER TABLE companies ADD COLUMN IF NOT EXISTS wizard_started_by INTEGER REFERENCES users(id);
ALTER TABLE companies ADD COLUMN IF NOT EXISTS wizard_audit_status JSONB;
GRANT ALL ON TABLE companies TO nordabiz_app;