Skip to main content

hr.customer_project_activities

Schema: hr
English table: hr.customer_project_activities
Italian original table: hr.in_commesse_attivita
Description: Specific activities defined within a customer project or sub-link.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOTechnical primary key (surrogate).
cpa_idcomat_idintegerNOFunctional identifier for the project activity.
cpa_cpr_idcomat_com_idintegerYESReference to the parent customer project (cpr_id).
cpa_codecomat_codecharacter varying(50)NOUnique code for the activity.
cpa_descriptioncomat_descriptioncharacter varying(250)NOFull description of the activity.
cpa_is_enabledcomat_enabledbooleanNOFlag indicating if the activity is active.
cpa_cpl_idcomat_coml_idintegerYESReference to the specific project link (cpl_id).
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_activities_cpl_idcpa_cpl_id, tenant_idhr.customer_project_linkscpl_id, tenant_idRESTRICTRESTRICT
fk_customer_project_activities_cpr_idcpa_cpr_id, tenant_idhr.customer_projectscpr_id, tenant_idRESTRICTRESTRICT
fk_customer_project_activities_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

From tableForeign keySource columnsTarget columns
hr.customer_project_activity_custom_fieldsfk_cust_proj_act_custom_fields_activity_idcaf_activity_id, tenant_idcpa_id, tenant_id
hr.customer_project_activity_groupsfk_cust_proj_act_groups_activity_idpag_activity_id, tenant_idcpa_id, tenant_id

Constraints

  • Primary key: pk_customer_project_activitiesid
  • Unique: uk_customer_project_activities_cpa_idcpa_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_cpa_cpl_id_tenantNObtreetenant_id, cpa_cpl_id) WHERE (_deleted = false
idx_cpa_cpr_cpl_id_tenantNObtreetenant_id, cpa_cpr_id, cpa_cpl_id) WHERE (_deleted = false
idx_cpa_cpr_id_tenantNObtreetenant_id, cpa_cpr_id) WHERE (_deleted = false
idx_cpa_id_tenantNObtreetenant_id, cpa_id) WHERE (_deleted = false
idx_cpa_tenantNObtreetenant_id