Required Document Rule Schema
Felder
Required Document Rule Schema
Tenant-/OU-/Position-scoped declaration of a document that an employee must provide (ADR 0112)
documentTypeId
FK to dms_document_type — the kind of document required.
documentTypeName
Snapshot of dms_document_type.name at rule creation time. Cached for display so a deleted document type does not blank-out the UI.
scope
kind
TENANTORG_UNITPOSITIONorgUnitId
Required when kind='ORG_UNIT'.
positionId
Required when kind='POSITION'.
mandatory
When true, missing this document is a compliance violation. False = nice-to-have, surfaced in the UI but does not flag red.
blockingForOnboarding
When true, the employee's onboarding state is held open until the document is on file. The onboarding-checklist generator surfaces these as auto-items.
renewalIntervalMonths
Document expires after this many months and must be renewed. Null = once, no renewal (e.g. employment contract). Used to compute expiry status against employee_documents.validUntil.
validFrom
Optional: rule only takes effect from this date (e.g. "DSGVO-Schulung is mandatory from 2026-07-01").
validTo
Optional: rule expires on this date.
description
Free-text note for HR admins, shown in the rule editor.
Keine Felder passen zum Filter.
Standard-Endpoints
Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:
GET /api/v1/required_document_rules— Liste, paginiert + filterbarGET /api/v1/required_document_rules/<id>— Einzelne EntityPOST /api/v1/required_document_rules— AnlegenPATCH /api/v1/required_document_rules/<id>— Teil-UpdateDELETE /api/v1/required_document_rules/<id>— Soft-DeleteGET /api/v1/required_document_rules/<id>/timeline— Audit + Aktivitäten