# Formulare

Tenant-Administratoren erstellen dynamische Formulare aus vorkonfigurierten Attributen (Text, Auswahl, Kontrollkästchen, Datei-Uploads usw.), um strukturierte Antworten zu erfassen.

Formulare unterstützen Status (draft, active, inactive), Slugs, Pflichtfeldprüfung und vollständigen Antwortverlauf. Nur active-Formulare nehmen Antworten an.

## Formularobjekt

Felder: id, title, description, status, slug, metadata, attributes, created_at und updated_at. Ein gebundenes Attribut enthält id, form_id, attribute_id, required, order_by, metadata und attribute (Felddefinition, Eingaberegeln und Optionen).

## Antwortobjekt

Eine Antwort enthält id, submission_ref, form_id, user_id (0 bei anonymer Antwort), user (Kurzprofil), ip_address, user_agent, metadata, attribute_values, created_at und updated_at. Jeder Wert enthält id, submission_id, form_id, attribute_id, values_ (ausgewählte oder eingegebene Zeichenfolgen) sowie eine Attributübersicht.
