app.ai_suggestion_fields
TablaSeguridad a nivel de fila activa
Proposed field values of an AI suggestion, each with a confidence score and provenance agent (rank 40, Section 3.8). A field the source does not support carries NO_ANSWER and what is missing instead of a guessed value (Section 3.7). The value is the model's output (a provider payload).
Clave primaria: id
| Columna | Tipo | Admite nulos | Descripción |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| org_id | uuid | No | Owning org, derived from app.ai_suggestions on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id |
| suggestion_id | uuid | No | Suggestion the field belongs to.Hace referencia a app.ai_suggestions.id |
| field_path | text | No | API field the value is for, for example title or insurance.expires_on. |
| proposed_value | jsonb | Sí | Proposed value as JSON; null when the field is NO_ANSWER. |
| confidence | numeric(4,3) | Sí | Confidence from 0 to 1; null when the field is NO_ANSWER. |
| refusal | text | Sí | NO_ANSWER when the source does not support a value; otherwise null. |
| missing | text | Sí | What the source lacks, when the field is NO_ANSWER. |
| source_excerpt | text | Sí | The passage of the source the value was read from, redacted, so the person can check it. |
| position | smallint | No | Order on the confirmation step. |
| created_at | timestamp with time zone | No | When the row was inserted. Set by the database. |
| created_by | uuid | Sí | Person who inserted the row, or null for a platform process. Set by the database.Hace referencia a app.people.id |
| updated_at | timestamp with time zone | No | When the row last changed. Set by the database. |
| updated_by | uuid | Sí | Person who last changed the row, or null for a platform process. Set by the database.Hace referencia a app.people.id |
| deleted_at | timestamp with time zone | Sí | Soft delete time. A row with deleted_at set is ignored by every access helper. |