Skip to main content

hr.customer_activity_calendar

Schema: hr
English table: hr.customer_activity_calendar
Italian original table: hr.in_clienti_attivita_calendario
Description: Detailed calendar of scheduled activities for customers, derived from activity plans.

Overview

  • Columns: 24
  • Primary key: id
  • Outgoing foreign keys: 3
  • Incoming foreign keys: 0
  • Indexes: 5

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOInternal surrogate primary key.
cac_idincliac_idintegerNOUnique identifier from the scheduling engine.
activity_plan_idincliac_inclia_idintegerNOReference to the originating activity plan.
employment_relationship_idincliac_rap_idintegerNOThe employee assigned to this specific calendar slot.
activity_dateincliac_datadateNOScheduled date for the activity.
start_timeincliac_dalleintegerNOOriginal scheduled start time.
end_timeincliac_alleintegerNOOriginal scheduled end time.
day_of_weekincliac_giorno_settimanaintegerNONumerical day of the week (e.g. 1=Monday).
hours_countincliac_num_oreintegerNOTotal scheduled hours for this slot.
is_cancelledincliac_annullatobooleanNOFlag indicating if the activity slot was cancelled.
is_confirmedincliac_confermatobooleanNOFlag indicating if the activity has been confirmed/validated.
moved_employment_relationship_idincliac_rap_id_spostatointegerNOReference to the new employee if the activity was reassigned.
moved_on_dateincliac_data_spostatointegerNOThe new date if the activity was rescheduled.
moved_start_timeincliac_dalle_spostatointegerNOThe new start time if rescheduled.
moved_end_timeincliac_alle_spostatointegerNOThe new end time if rescheduled.
moved_day_of_weekincliac_giorno_settimana_spostatointegerNONumerical day of the week for the rescheduled date.
moved_hours_countincliac_num_ore_spostatointegerNOTotal hours for the rescheduled slot.
is_partialincliac_parzialebooleanNOFlag indicating a partial fulfillment of the slot.
employee_start_timeincliac_dip_dalleintegerNOActual start time reported by the employee.
employee_end_timeincliac_dip_alleintegerNOActual end time reported by the employee.
employee_hours_countincliac_dip_num_oreintegerNOActual number of hours worked as reported by the employee.
tenant_idtenant_idintegerYESMulti-tenancy identifier.
colcustomcolcustomjsonbYES'{}'::jsonbJSON storage for custom fields.
_deleted_deletedbooleanYESfalseTechnical soft delete flag.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_customer_activity_calendar_activity_planactivity_plan_id, tenant_idhr.customer_activity_schedulescas_id, tenant_idRESTRICTRESTRICT
fk_customer_activity_calendar_employmentemployment_relationship_id, tenant_idhr.employment_relationshipser_id, tenant_idRESTRICTCASCADE
fk_customer_activity_calendar_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_customer_activity_calendarid
  • Unique: uk_customer_activity_calendar_cac_idcac_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_cac_date_tenantNObtreetenant_id, activity_date) WHERE (_deleted = false
idx_cac_employment_tenantNObtreetenant_id, employment_relationship_id) WHERE (_deleted = false
idx_cac_external_id_tenantNObtreetenant_id, cac_id) WHERE (_deleted = false
idx_cac_plan_tenantNObtreetenant_id, activity_plan_id) WHERE (_deleted = false
idx_cac_tenant_baseNObtreetenant_id