Files
tenant-registry/openapi.yaml
T
Sharang ParnerkarandClaude Opus 5.5 9ee0f9e3dd
ci / shared (pull_request) Successful in 15s
ci / test (pull_request) Successful in 25m51s
ci / image (pull_request) Skipped
feat(company-profile): Unternehmensprofil per tenant, registry as the authority
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>
2026-10-20 11:31:55 +02:00

93 KiB