maiven gateway · online··
manifest · 1d ago
Sign in
Back to catalog
MAIVENsourceraw_postgres

communication_links

source

The map from each comm to the finance entities it touches.

Definition

Polymorphic links: `comm_id` (keyed by comm_type) ↔ `entity_id` (keyed by entity_type). No hard relationship test is possible across the union; coverage is asserted via accepted_values on comm_type + entity_type. Carries `confidence` when inferred.

10 of 10
Column
Description
Tests · PII
communication_link_id
Primary key — BIGSERIAL on the source.
2 tests
comm_type
Comm side — `email_message` / `chat_message` / `finance_note`.
1 test
comm_id
Soft FK to the comm_type table PK. NOT NULL.
entity_type
Entity side — `customer_invoice` / `vendor_bill` / `customer` / `vendor` / `gl_account` / `period` / `budget` / `forecast` / `journal_entry`.
1 test
entity_id
Soft FK to the entity_type table PK. NOT NULL.
link_reason
Why the link exists — `explicit_mention` / `thread_subject` / `attachment_match` / `manual_tag` / `inferred`. Nullable.
confidence
0..1 when inferred; NULL when explicit. NUMERIC(4,3).
linked_by_employee_id
FK to `finance_employees.employee_id` — actor reference. Nullable.
created_at
Row insert timestamp in the source DB.
updated_at
Row update timestamp in the source DB.