A tenant groups its documents and product objects by one of its own
products (kind product) or a topic such as the CRA (kind topic). Purely
organisational.
- migration 0010: projects (unique name per tenant, ignoring case),
document_projects, documents.own_document
- GET/POST /v1/tenants/{id}/projects, PATCH/DELETE .../{pid}: the portal
writes for staff and tenant admins; products read with tenants.read
- GET /v1/tenants/{id}/projects/{pid}/targets: the project's Prüfwerk
objects from Prüfwerk's platform API (service token), with dashboard links;
empty and available=false when Prüfwerk cannot answer
- documents: upload with project_ids and own_document, PATCH
/v1/admin/documents/{doc} to reassign; own documents are published
without a notification mail
- audit: project.created/updated/deleted, document.updated
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
63 KiB
63 KiB