app.custom_object_relations
TableRow level security on
Links from a custom object record to records, projects, parties, people or other custom object records (Section 4.6.3), one row per link.
Primary key: id
| Column | Type | Nullable | Description |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| org_id | uuid | No | Owning org, derived from app.custom_object_records on insert; never accepted from the caller and never changed.References app.organizations.id |
| from_record_id | uuid | No | Custom object record the link starts from.References app.custom_object_records.id |
| relation_key | text | No | Name of the relation, such as sponsor or venue. |
| to_custom_record_id | uuid | Yes | Linked custom object record.References app.custom_object_records.id |
| to_record_id | uuid | Yes | Linked record.References app.records.id |
| to_project_id | uuid | Yes | Linked project.References app.projects.id |
| to_counterparty_id | uuid | Yes | Linked party (counterparty organization).References app.counterparties.id |
| to_person_id | uuid | Yes | Linked person.References app.people.id |
| created_at | timestamp with time zone | No | When the row was inserted. Set by the database. |
| created_by | uuid | Yes | Person who inserted the row, or null for a platform process. Set by the database.References app.people.id |
| updated_at | timestamp with time zone | No | When the row last changed. Set by the database. |
| updated_by | uuid | Yes | Person who last changed the row, or null for a platform process. Set by the database.References app.people.id |
| deleted_at | timestamp with time zone | Yes | Soft delete time. A row with deleted_at set is ignored by every access helper. |