Skip to main content

hr.customer_profora_assignments

Schema: hr
English table: hr.customer_profora_assignments
Italian original table: hr.in_clienti_profora
Description: Links customers to hour profiles (profora) for specific time periods.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOInternal surrogate primary key.
cha_idinclipo_idintegerNOUnique identifier for the assignment within a tenant.
cha_customer_idinclipo_incli_idintegerNOReference to the customer.
cha_hour_profile_idinclipo_por_idintegerNOReference to the hour profile (profora) configuration.
cha_valid_frominclipo_daldateNOStart date of the assignment.
cha_valid_toinclipo_aldateNOEnd date of the assignment.
tenant_idtenant_idintegerYESTenant identifier for data isolation.
colcustomcolcustomjsonbYES'{}'::jsonbJSON field for custom data.
_deleted_deletedbooleanYESfalseTechnical soft delete flag.
cha_validity_periodinclipo_periododaterangeYESGENERATED: daterange(cha_valid_from, cha_valid_to, '[]'::text)Generated daterange for the hour profile validity.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_customer_profora_assignments_customercha_customer_id, tenant_idhr.customerscust_id, tenant_idRESTRICTRESTRICT
fk_customer_profora_assignments_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_customer_profora_assignmentsid
  • Unique: uk_customer_profora_assignments_idcha_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_cha_profora_customer_tenantNObtreetenant_id, cha_customer_id) WHERE (_deleted = false
idx_cha_profora_id_tenantNObtreetenant_id, cha_id) WHERE (_deleted = false
idx_cha_profora_profile_tenantNObtreetenant_id, cha_hour_profile_id) WHERE (_deleted = false
idx_cha_profora_tenantNObtreetenant_id
idx_cha_profora_tenant_customer_period_gistNOgisttenant_id, cha_customer_id, cha_validity_period) WHERE (_deleted = false
idx_cha_profora_tenant_period_gistNOgisttenant_id, cha_validity_period) WHERE (_deleted = false