Saltar al contenido

app.form_submissions

TablaSeguridad a nivel de fila activa

A submitted form: its answers against one template version, score, GPS stamp, signature and approval. Written only through app.submit_form; a project submission links to the record it became.

Clave primaria: id

Columnas de app.form_submissions
ColumnaTipoAdmite nulosDescripción
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.form_templates on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id
form_template_iduuidNoForm answered.Hace referencia a app.form_templates.id
form_template_version_iduuidNoVersion of the form answered.Hace referencia a app.form_template_versions.id
project_iduuidSíProject the submission belongs to, when any.Hace referencia a app.projects.id
record_iduuidSíRecord the project submission became.Hace referencia a app.records.id
submitted_by_membership_iduuidNoMember who submitted.Hace referencia a app.memberships.id
answersjsonbNoAnswers keyed by field key.
scorenumericSíPoints earned, when the form scores answers.
max_scorenumericSíPoints available on the fields shown.
passedbooleanSíWhether the score met the passing score; NULL when the form has none.
latitudenumericSíGPS latitude at submission.
longitudenumericSíGPS longitude at submission.
accuracy_mnumericSíGPS accuracy in metres.
signer_nametextSíName of the person who signed.
signature_pathtextSíStorage path of the signature image in the field-media bucket.
signed_attimestamp with time zoneSíWhen it was signed.
submission_stateapp.form_submission_stateNoSubmitted, Approved, Rejected or Recorded.
decided_by_membership_iduuidSíApprover who decided.Hace referencia a app.memberships.id
decision_notetextSíApprover's note.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidSíPerson who inserted the row, or null for a platform process. Set by the database.Hace referencia a app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidSíPerson who last changed the row, or null for a platform process. Set by the database.Hace referencia a app.people.id
deleted_attimestamp with time zoneSíSoft delete time. A row with deleted_at set is ignored by every access helper.