Skip to main content

hr.customer_project_links

Schema: hr
English table: hr.customer_project_links
Italian original table: hr.in_commesse_link
Description: Detailed links or sub-entities associated with customer projects.

Overview

  • Columns: 10
  • Primary key: id
  • Outgoing foreign keys: 2
  • Incoming foreign keys: 2
  • Indexes: 4

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOTechnical primary key (surrogate).
cpl_idcoml_idintegerNOFunctional identifier for the project link.
cpl_cpr_idcoml_com_idintegerNOReference to the parent customer project (cpr_id).
cpl_codecoml_codecharacter varying(50)NOUnique alphanumeric code for the link.
cpl_descriptioncoml_descriptioncharacter varying(250)NOFull description of the project link.
cpl_is_enabledcoml_enabledbooleanNOFlag indicating if this link is active.
cpl_short_descriptioncoml_short_descrcharacter varying(100)NOShort description of the project link.
tenant_idtenant_idintegerYESTenant identifier for data isolation.
colcustomcolcustomjsonbYES'{}'::jsonbJSON structure for custom fields.
_deleted_deletedbooleanYESfalseTechnical soft delete flag.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_customer_project_links_cpr_idcpl_cpr_id, tenant_idhr.customer_projectscpr_id, tenant_idRESTRICTRESTRICT
fk_customer_project_links_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

From tableForeign keySource columnsTarget columns
hr.business_tripsfk_intra_coml_idbtr_cpl_id, tenant_idcpl_id, tenant_id
hr.customer_project_activitiesfk_customer_project_activities_cpl_idcpa_cpl_id, tenant_idcpl_id, tenant_id

Constraints

  • Primary key: pk_customer_project_linksid
  • Unique: uk_customer_project_links_cpl_idcpl_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_cpl_cpr_id_enabled_tenantNObtreetenant_id, cpl_cpr_id) WHERE ((_deleted = false) AND (cpl_is_enabled = true)
idx_cpl_cpr_id_tenantNObtreetenant_id, cpl_cpr_id) WHERE (_deleted = false
idx_cpl_id_tenantNObtreetenant_id, cpl_id) WHERE (_deleted = false
idx_cpl_tenantNObtreetenant_id