app.merge_reviews
TablaSeguridad a nivel de fila activa
Fuzzy matches waiting for a person (Section 4.6.2 step 5): an import row whose name plus address is at least 0.85 similar (pg_trgm) to an existing row. Fuzzy matches never merge automatically.
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.import_row_results on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id |
| import_row_result_id | uuid | No | Import row that matched.Hace referencia a app.import_row_results.id |
| candidate_table | text | No | Table of the existing row. |
| candidate_id | uuid | No | Existing row it may duplicate. |
| similarity | numeric(4,3) | No | pg_trgm similarity of name plus address, 0.85 to 1. |
| decision | app.merge_decision | No | Pending, Merged or Kept Separate. |
| decided_by | uuid | Sí | Person who decided, set from the session.Hace referencia a app.people.id |
| decided_at | timestamp with time zone | Sí | When they decided, set by the database. |
| 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. |