Skip to content

app.merge_reviews

TableRow level security on

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.

Primary key: id

Columns of app.merge_reviews
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.import_row_results on insert; never accepted from the caller and never changed.References app.organizations.id
import_row_result_iduuidNoImport row that matched.References app.import_row_results.id
candidate_tabletextNoTable of the existing row.
candidate_iduuidNoExisting row it may duplicate.
similaritynumeric(4,3)Nopg_trgm similarity of name plus address, 0.85 to 1.
decisionapp.merge_decisionNoPending, Merged or Kept Separate.
decided_byuuidYesPerson who decided, set from the session.References app.people.id
decided_attimestamp with time zoneYesWhen they decided, set by the database.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidYesPerson who inserted the row, or null for a platform process. Set by the database.References app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidYesPerson who last changed the row, or null for a platform process. Set by the database.References app.people.id
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.