4. Personal
Das Array personnel listet alle auf der Baustelle eingesetzten Arbeitskräfte auf, gruppiert nach Funktion/Rolle.
Felder
| Feldname | JSON-Key | Typ | Pflicht | Beschreibung | Beispiel |
|---|---|---|---|---|---|
| ID | id | UUID | ✓ | — | uuid |
| Bericht-ID | report_id | UUID | ✓ | — | uuid |
| Anzahl | count | INT | ✓ | Personenanzahl dieser Gruppe | 5 |
| Stunden gesamt | hours | DECIMAL(6,2) | ✓ | Gesamtstunden der Gruppe | 42.50 |
| Funktion/Rolle | role | VARCHAR(100) | ✓ | Berufsbezeichnung oder Funktion | Gleisbauer |
JSON-Beispiel
{ "personnel": [ { "id": "uuid", "report_id": "uuid", "count": 5, "hours": "42.50", "role": "Gleisbauer" }, { "id": "uuid", "report_id": "uuid", "count": 1, "hours": "8.00", "role": "Bauleiter" }, { "id": "uuid", "report_id": "uuid", "count": 2, "hours": "16.00", "role": "Schweißer" } ]}