app.idempotency_keys
TablaSeguridad a nivel de fila activa
Idempotency-Key ledger per tenant (ADR 0003, Section 5 rule 4): two devices or tabs draining one queue never file a record twice. A key lives 24 hours; a replay returns the stored response.
Clave primaria: id
| Columna | Tipo | Admite nulos | Descripción |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| org_id | uuid | No | Owning org. A row never moves to another org.Hace referencia a app.organizations.id |
| idempotency_key | text | No | Idempotency-Key header value, unique per org. |
| person_id | uuid | Sí | Person whose request first used the key.Hace referencia a app.people.id |
| request_hash | bytea | No | SHA-256 of method, path and body of the first request; a different request under the same key is refused. |
| response_status | smallint | Sí | HTTP status of the original response, once it completed. |
| response_body | jsonb | Sí | Original response body (an API provider payload, ADR 0002), returned verbatim on replay. |
| completed_at | timestamp with time zone | Sí | When the original request completed. |
| 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. |