API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · training_reports

Training Report (Ausbildungsnachweis) Schema

ID du schéma
training_report
Collection
training_reports
Autorisations
  • Liretraining_report_view
  • Créertraining_report_create
  • Modifiertraining_report_edit
  • Supprimertraining_report_delete

Champs

Training Report (Ausbildungsnachweis) Schema

training_reports4 autorisations

Monthly apprentice training report after the IHK Trier form. Filled by the apprentice, reviewed and approved by the team lead (Ausbilder). Status machine: draft → submitted → in_review → needs_revision → approved.

sequenceNumberintegerfacultatif

IHK "Ausbildungsnachweis Nr." — per-apprentice running number (1, 2, 3 …). Set at creation = count of the apprentice's existing reports + 1.

≥ 1lecture seulenullable
apprenticeUserIduuidobligatoire

User UUID of the apprentice (Azubi) this report belongs to.

lecture seule
apprenticeProfileIduuidfacultatif

employee_profile UUID of the apprentice (denormalized for lookup).

lecture seulenullable
apprenticeNamestringfacultatif

Vor- und Zuname — snapshot of the apprentice name at creation (auto-filled).

max. 300 caractèreslecture seulenullable
ausbildungsberufstringfacultatif

Ausbildungsberuf, Fachrichtung (e.g. "Fachinformatiker für Anwendungsentwicklung"). Auto-filled from the profile qualification, apprentice-editable.

max. 300 caractèresnullable
ausbildungsjahrstringfacultatif

Ausbildungsjahr as printed on the IHK form (e.g. "2025" — the year the training started). Free string, auto-filled from the hire year.

max. 20 caractèresnullable
departmentstringfacultatif

Ausbildungsabteilung/-bereich during the reporting period (e.g. "Entwicklung").

max. 300 caractèresnullable
locationstringfacultatif

Ausbildungs-Standort/Arbeitsort as a denormalized snapshot label (e.g. "Trier · 54290 Trier"), resolved from the apprentice profile workLocationId → legal-entity address at creation. Powers the reviewer "Standort" filter. Optional → null on reports created before this field existed (no backfill; the filter simply does not match those old drafts).

max. 300 caractèreslecture seulenullable
periodobjectobligatoire

Reporting period — monthly. Drives the unique-per-month constraint.

lecture seule
yearintegerobligatoire
2000 – 2100
monthintegerobligatoire
1 – 12
periodLabelstringfacultatif

Human-readable period label (e.g. "Mai 2026"). Auto-filled.

max. 50 caractèreslecture seulenullable
periodStartdatefacultatif

First day of the reporting period (ISO date). Auto-filled.

lecture seulenullable
periodEnddatefacultatif

Last day of the reporting period (ISO date). Auto-filled.

lecture seulenullable
reviewerIduuidfacultatif

User UUID of the reviewing team lead / Ausbilder. Resolved from the apprentice profile (ausbilderEmployeeId → userId, managerId fallback) at creation.

lecture seulenullable
reviewerNamestringfacultatif

Snapshot of the assigned Ausbilder name (shown to the apprentice in their list). Auto-filled at creation.

max. 300 caractèreslecture seulenullable
statusstringobligatoire

Workflow status. Transitions enforced by training-report.service.

draftsubmittedin_reviewneeds_revisionapproved
Par défaut : "draft"lecture seule
activitiesstring[]facultatif

"Tätigkeiten diesen Monat" — one entry per bullet point (PLAIN; derived from activitiesHtml when the rich editor is used; authoritative for PDF/AI/reviewer offset-annotations).

Par défaut : []nullable
activitiesHtmlstringfacultatif

Rich-text HTML body for the monthly activities list (sanitised).

max. 80000 caractèresnullable
vocationalSchoolSubjectsHtmlstringfacultatif

Rich-text HTML for the vocational-school subjects list (sanitised).

max. 40000 caractèresnullable
vocationalSchoolTopicsHtmlstringfacultatif

Rich-text HTML for the vocational-school topics list (sanitised).

max. 60000 caractèresnullable
vocationalSchoolSubjectsstring[]facultatif

Berufsschule → Unterrichtsfächer (e.g. "FAE_L01", "Sport").

Par défaut : []nullable
vocationalSchoolTopicsstring[]facultatif

Berufsschule → Unterrichtsthemen (one entry per topic line).

Par défaut : []nullable
detailedTaskobjectfacultatif

Ausführliche Beschreibung einer Arbeitsaufgabe für diesen Monat.

nullable
topicstringfacultatif

Thema.

max. 500 caractèresnullable
descriptionstringfacultatif

Long-form description of one work task (PLAIN text — derived from descriptionHtml when the rich editor is used; stays authoritative for PDF/AI/reviewer offset-annotations).

max. 20000 caractèresnullable
descriptionHtmlstringfacultatif

Rich-text HTML body for the work-task description (sanitised).

max. 80000 caractèresnullable
externalFileIdsstring[]facultatif

Externally uploaded report files (e.g. signed PDF, scanned sheet) via the file/DMS service.

Par défaut : []nullable
sourcestringfacultatif

How the report is authored: "form" (default) = the structured IHK form, the SSoT for inline annotations / AI pre-check / search; "upload" = the apprentice uploaded a finished document (uploadedPdfFileId — PDF or Word) which IS the report document instead of the rendered form.

formupload
Par défaut : "form"lecture seulenullable
uploadedPdfFileIdstringfacultatif

When source="upload": file id (collection `files`, entityType `training_reports`) of the apprentice-uploaded source document served as the report document (download/preview) in place of the form render. Legacy name — the file may be a PDF or a Word document (see uploadedDocumentVersions[].mimeType). Kept as the downloadable original after a PDF→form extraction.

lecture seulenullable
uploadedDocumentVersionsobject[]facultatif

Chronological stack of every uploaded report document (source="upload"). Each successful set-pdf upload appends an entry; the last entry is the active document (uploadedPdfFileId). Lets the apprentice and reviewer see and download previous versions after a re-upload. Optional → absent/empty on reports whose single upload predates this field (fall back to uploadedPdfFileId, assumed PDF).

Par défaut : []lecture seulenullable
idstringfacultatif

Stable version entry id (UUID).

fileIdstringobligatoire

files-collection id of this uploaded document version.

fileNamestringfacultatif
max. 500 caractèresnullable
mimeTypestringfacultatif

MIME type of the uploaded file (e.g. "application/pdf" or a Word type). Drives inline-preview vs. download-only in the UI.

max. 200 caractèresnullable
fileSizeintegerfacultatif
≥ 0nullable
uploadedAtdatetimefacultatif
nullable
uploadedByuuidfacultatif
nullable
uploadedByNamestringfacultatif
max. 300 caractèresnullable
pdfExtractionStatusstringfacultatif

State of the manual "Felder aus PDF erkennen" job (OCR + LLM that parses the uploaded PDF into the form fields, then flips source=upload → form). Null = never run.

pendingcompletedfailed
lecture seulenullable
pdfExtractionFeedbackstringfacultatif

Error / completion message from the PDF field-extraction job.

max. 5000 caractèreslecture seulenullable
submittedAtdatetimefacultatif

When the apprentice submitted the report.

lecture seulenullable
reviewedAtdatetimefacultatif

When the team lead approved or sent back the report.

lecture seulenullable
reviewedByuuidfacultatif

User UUID of the reviewer who took the last review action.

lecture seulenullable
revisionCountintegerfacultatif

How often the report has been sent back for revision.

≥ 0Par défaut : 0lecture seule
reviewFeedbackstringfacultatif

Overall feedback text from the team lead (shown to the apprentice).

max. 10000 caractèreslecture seulenullable
reviewAnnotationsobject[]facultatif

Inline text-passage markups by the reviewer: the apprentice sees these anchored comments on return.

Par défaut : []lecture seulenullable
idstringfacultatif

Stable annotation id (UUID).

fieldPathstringfacultatif

Path of the annotated text field (e.g. "detailedTask.description", "activities.0").

max. 200 caractèresnullable
quotestringfacultatif

Snapshot of the marked text — render fallback if offsets drift.

max. 10000 caractèresnullable
startOffsetintegerfacultatif

Character start offset of the marked range within the field text.

≥ 0nullable
endOffsetintegerfacultatif

Character end offset (exclusive) of the marked range.

≥ 0nullable
commentstringobligatoire

What is wrong / how to fix.

max. 5000 caractères
resolvedbooleanfacultatif

Whether the apprentice has addressed this annotation.

Par défaut : falsenullable
createdAtdatetimefacultatif
lecture seulenullable
createdByuuidfacultatif
lecture seulenullable
apprenticeSignatureobjectfacultatif

Digital signature captured when the apprentice submits ("für die Richtigkeit" — IHK "Unterschrift des Auszubildenden"). Drawn online, uploaded as an image, or typed.

lecture seulenullable
signedByuuidfacultatif
nullable
signedByNamestringfacultatif
max. 300 caractèresnullable
signedAtdatetimefacultatif
nullable
methodstringfacultatif
drawntypeduploaded
nullable
imagestringfacultatif
max. 1500000 caractèresnullable
typedNamestringfacultatif
max. 300 caractèresnullable
approvalSignatureobjectfacultatif

Digital signature captured when the reviewer approves the report (IHK "Unterschrift des Ausbildenden").

lecture seulenullable
signedByuuidfacultatif
nullable
signedByNamestringfacultatif
max. 300 caractèresnullable
signedAtdatetimefacultatif
nullable
methodstringfacultatif
drawntypeduploaded
nullable
imagestringfacultatif
max. 1500000 caractèresnullable
typedNamestringfacultatif
max. 300 caractèresnullable
lastReminderAtdatetimefacultatif

When the reviewer last sent the apprentice a reminder for this report.

lecture seulenullable
reminderCountintegerfacultatif

How many reminders the reviewer has sent for this report.

≥ 0Par défaut : 0lecture seule
aiReviewStatusstringfacultatif

State of the manual AI pre-check. Null = never run.

pendingcompletedfailed
lecture seulenullable
aiReviewFeedbackstringfacultatif

AI summary of the report quality.

max. 20000 caractèreslecture seulenullable
aiReviewStrengthsstring[]facultatif

What the apprentice did well (AI).

Par défaut : []lecture seulenullable
aiReviewIssuesobject[]facultatif

Problems / gaps the AI found.

Par défaut : []lecture seulenullable
textstringobligatoire
max. 5000 caractères
sectionRefstringfacultatif
max. 200 caractèresnullable
aiReviewSuggestionsstring[]facultatif

Actionable improvement suggestions (AI).

Par défaut : []lecture seulenullable
aiReviewCriteriaobject[]facultatif

Per-criterion verdict of the AI pre-check (spelling, accuracy, completeness, clarity) — drives the "Geprüft wird" result list in the reviewer UI.

Par défaut : []lecture seulenullable
keystringobligatoire
spellingaccuracycompletenessclarity
ratingstringobligatoire
goodwarningcritical
summarystringfacultatif
max. 2000 caractèresnullable
aiReviewScorenumberfacultatif

Suggested quality score 0–100 (AI). Advisory only — no grading.

0 – 100lecture seulenullable
aiReviewConfidencenumberfacultatif

AI confidence 0.0–1.0.

0 – 1lecture seulenullable
aiReviewedAtdatetimefacultatif

When the AI pre-check completed.

lecture seulenullable
pdfFileIdstringfacultatif

File id of the generated, signed IHK PDF (collection `files`, entityType `training_report`). Created on approval; the apprentice can download it afterwards via GET /training-reports/:id/download.

lecture seulenullable

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/training_reports — Liste, paginée et filtrable
  • GET /api/v1/training_reports/<id> — Une entité
  • POST /api/v1/training_reports — Créer
  • PATCH /api/v1/training_reports/<id> — Mise à jour partielle
  • DELETE /api/v1/training_reports/<id> — Suppression logique
  • GET /api/v1/training_reports/<id>/timeline — Audit et activités

Recherche