Decided 2026-10-20: the onboarding company profile (Unternehmensprofil +
Compliance-Umfang) moves from the workspace prototype into the portal, and
the registry is its authoritative store.
- migration 0021: company_profiles (one per tenant: the form's document as
JSONB, schema version, revision, draft/submitted, who and when) and
company_profile_revisions (every state, with its source: portal, submit
or import)
- GET/PUT /v1/tenants/{id}/company-profile, POST …/submit: optimistic
revisions (409 with the current revision), an unchanged save is no new
revision (autosave), the status survives later edits
- GET/PUT /v1/admin/tenants/{id}/company-profile: staff import, only with a
named staff member
- the registry checks the document's outline only (keys, sections, answer
types, own_company, 256 KiB); fields and options are the portal's schema
- audit: company_profile.saved / .submitted / .imported with the revision,
never the answers
- openapi.yaml documents the five operations
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
93 KiB
93 KiB