Skip to main content

hr.company_entity_links

Schema: hr
English table: hr.company_entity_links
Italian original table: hr.azienda_enti_link
Description: Links a company to related external entities (e.g., institutions or counterparties).

Overview

  • Columns: 8
  • Primary key: id
  • Outgoing foreign keys: 1
  • Incoming foreign keys: 0
  • Indexes: 4

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOSurrogate primary key.
cel_idaze_idintegerNOCompany-entity link internal identifier, unique per tenant.
cel_company_idaze_az_idintegerNOReference to the company.
cel_entity_idaze_sog_idintegerNOReference to the related external entity.
cel_descriptionaze_descriptioncharacter varying(50)NOShort description of the company-entity relationship.
tenant_idtenant_idintegerYESTenant identifier.
colcustomcolcustomjsonbYES'{}'::jsonbCustom fields in JSON format.
_deleted_deletedbooleanYESfalseSoft delete flag.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_cmpentlk_tenant_idtenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_company_entity_linksid
  • Unique: uk_cmpentlk_cel_id_tenantcel_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_cmpentlk_tenantNObtreetenant_id
idx_cmpentlk_tenant_celNObtreetenant_id, cel_id) WHERE (_deleted = false
idx_cmpentlk_tenant_companyNObtreetenant_id, cel_company_id) WHERE (_deleted = false
idx_cmpentlk_tenant_entityNObtreetenant_id, cel_entity_id) WHERE (_deleted = false