API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · training_reports

Training Report (Ausbildungsnachweis) Schema

Schema-ID
training_report
Collection
training_reports
Permissions
  • Lezentraining_report_view
  • Aanmakentraining_report_create
  • Wijzigentraining_report_edit
  • Verwijderentraining_report_delete

Velden

Training Report (Ausbildungsnachweis) Schema

training_reports4 permissions

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.

sequenceNumberintegeroptioneel

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

≥ 1read-onlynullable
apprenticeUserIduuidvereist

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

read-only
apprenticeProfileIduuidoptioneel

employee_profile UUID of the apprentice (denormalized for lookup).

read-onlynullable
apprenticeNamestringoptioneel

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

max. 300 tekensread-onlynullable
ausbildungsberufstringoptioneel

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

max. 300 tekensnullable
ausbildungsjahrstringoptioneel

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 tekensnullable
departmentstringoptioneel

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

max. 300 tekensnullable
locationstringoptioneel

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 tekensread-onlynullable
periodobjectvereist

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

read-only
yearintegervereist
2000 – 2100
monthintegervereist
1 – 12
periodLabelstringoptioneel

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

max. 50 tekensread-onlynullable
periodStartdateoptioneel

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

read-onlynullable
periodEnddateoptioneel

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

read-onlynullable
reviewerIduuidoptioneel

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

read-onlynullable
reviewerNamestringoptioneel

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

max. 300 tekensread-onlynullable
statusstringvereist

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

draftsubmittedin_reviewneeds_revisionapproved
Default: "draft"read-only
activitiesstring[]optioneel

"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).

Default: []nullable
activitiesHtmlstringoptioneel

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

max. 80000 tekensnullable
vocationalSchoolSubjectsHtmlstringoptioneel

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

max. 40000 tekensnullable
vocationalSchoolTopicsHtmlstringoptioneel

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

max. 60000 tekensnullable
vocationalSchoolSubjectsstring[]optioneel

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

Default: []nullable
vocationalSchoolTopicsstring[]optioneel

Berufsschule → Unterrichtsthemen (one entry per topic line).

Default: []nullable
detailedTaskobjectoptioneel

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

nullable
topicstringoptioneel

Thema.

max. 500 tekensnullable
descriptionstringoptioneel

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 tekensnullable
descriptionHtmlstringoptioneel

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

max. 80000 tekensnullable
externalFileIdsstring[]optioneel

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

Default: []nullable
sourcestringoptioneel

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
Default: "form"read-onlynullable
uploadedPdfFileIdstringoptioneel

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.

read-onlynullable
uploadedDocumentVersionsobject[]optioneel

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).

Default: []read-onlynullable
idstringoptioneel

Stable version entry id (UUID).

fileIdstringvereist

files-collection id of this uploaded document version.

fileNamestringoptioneel
max. 500 tekensnullable
mimeTypestringoptioneel

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 tekensnullable
fileSizeintegeroptioneel
≥ 0nullable
uploadedAtdatetimeoptioneel
nullable
uploadedByuuidoptioneel
nullable
uploadedByNamestringoptioneel
max. 300 tekensnullable
pdfExtractionStatusstringoptioneel

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
read-onlynullable
pdfExtractionFeedbackstringoptioneel

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

max. 5000 tekensread-onlynullable
submittedAtdatetimeoptioneel

When the apprentice submitted the report.

read-onlynullable
reviewedAtdatetimeoptioneel

When the team lead approved or sent back the report.

read-onlynullable
reviewedByuuidoptioneel

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

read-onlynullable
revisionCountintegeroptioneel

How often the report has been sent back for revision.

≥ 0Default: 0read-only
reviewFeedbackstringoptioneel

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

max. 10000 tekensread-onlynullable
reviewAnnotationsobject[]optioneel

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

Default: []read-onlynullable
idstringoptioneel

Stable annotation id (UUID).

fieldPathstringoptioneel

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

max. 200 tekensnullable
quotestringoptioneel

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

max. 10000 tekensnullable
startOffsetintegeroptioneel

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

≥ 0nullable
endOffsetintegeroptioneel

Character end offset (exclusive) of the marked range.

≥ 0nullable
commentstringvereist

What is wrong / how to fix.

max. 5000 tekens
resolvedbooleanoptioneel

Whether the apprentice has addressed this annotation.

Default: falsenullable
createdAtdatetimeoptioneel
read-onlynullable
createdByuuidoptioneel
read-onlynullable
apprenticeSignatureobjectoptioneel

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

read-onlynullable
signedByuuidoptioneel
nullable
signedByNamestringoptioneel
max. 300 tekensnullable
signedAtdatetimeoptioneel
nullable
methodstringoptioneel
drawntypeduploaded
nullable
imagestringoptioneel
max. 1500000 tekensnullable
typedNamestringoptioneel
max. 300 tekensnullable
approvalSignatureobjectoptioneel

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

read-onlynullable
signedByuuidoptioneel
nullable
signedByNamestringoptioneel
max. 300 tekensnullable
signedAtdatetimeoptioneel
nullable
methodstringoptioneel
drawntypeduploaded
nullable
imagestringoptioneel
max. 1500000 tekensnullable
typedNamestringoptioneel
max. 300 tekensnullable
lastReminderAtdatetimeoptioneel

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

read-onlynullable
reminderCountintegeroptioneel

How many reminders the reviewer has sent for this report.

≥ 0Default: 0read-only
aiReviewStatusstringoptioneel

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

pendingcompletedfailed
read-onlynullable
aiReviewFeedbackstringoptioneel

AI summary of the report quality.

max. 20000 tekensread-onlynullable
aiReviewStrengthsstring[]optioneel

What the apprentice did well (AI).

Default: []read-onlynullable
aiReviewIssuesobject[]optioneel

Problems / gaps the AI found.

Default: []read-onlynullable
textstringvereist
max. 5000 tekens
sectionRefstringoptioneel
max. 200 tekensnullable
aiReviewSuggestionsstring[]optioneel

Actionable improvement suggestions (AI).

Default: []read-onlynullable
aiReviewCriteriaobject[]optioneel

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

Default: []read-onlynullable
keystringvereist
spellingaccuracycompletenessclarity
ratingstringvereist
goodwarningcritical
summarystringoptioneel
max. 2000 tekensnullable
aiReviewScorenumberoptioneel

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

0 – 100read-onlynullable
aiReviewConfidencenumberoptioneel

AI confidence 0.0–1.0.

0 – 1read-onlynullable
aiReviewedAtdatetimeoptioneel

When the AI pre-check completed.

read-onlynullable
pdfFileIdstringoptioneel

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.

read-onlynullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/training_reports — Lijst, gepagineerd + filterbaar
  • GET /api/v1/training_reports/<id> — Enkele entity
  • POST /api/v1/training_reports — Aanmaken
  • PATCH /api/v1/training_reports/<id> — Gedeeltelijke update
  • DELETE /api/v1/training_reports/<id> — Soft-delete
  • GET /api/v1/training_reports/<id>/timeline — Audit + activiteiten

Zoeken