Skip to main content

hr.activity_types

Schema: hr
English table: hr.activity_types
Italian original table: hr.tipi_attivita
Description: Catalog of activity types used to classify activities and drive related workflow behavior.

Overview

  • Columns: 11
  • Primary key: id
  • Outgoing foreign keys: 4
  • Incoming foreign keys: 0
  • Indexes: 5

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOSurrogate primary key.
actt_activity_type_idtipatt_idintegerNOTenant-scoped activity type identifier.
actt_activity_group_idtipatt_gratt_idintegerNOReference to the activity group this type belongs to.
actt_descriptiontipatt_descrizionecharacter varying(50)NOActivity type description.
actt_confirmed_event_type_idtipatt_tev_id_confermatointegerNOEvent type to associate when the activity is confirmed.
actt_cancelled_event_type_idtipatt_tev_id_annullatointegerNOEvent type to associate when the activity is cancelled.
actt_user_idtipatt_ut_idcharacter varying(50)NOUser identifier related to the activity type (e.g., owner/maintainer).
actt_notice_template_idtipatt_preavviso_xte_idintegerNOReference to the notice/template used for advance notification.
tenant_idtenant_idintegerYESTenant identifier.
colcustomcolcustomjsonbYES'{}'::jsonbCustom fields in JSON format.
_deleted_deletedbooleanYESfalseSoft delete flag.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_activity_types_tenant_idtenant_idcloud.tenantsten_internal_idRESTRICTCASCADE
fk_actt_tenant_activity_groupactt_activity_group_id, tenant_idhr.activity_groupsactg_activity_group_id, tenant_idRESTRICTRESTRICT
fk_actt_tenant_cancelled_event_typeactt_cancelled_event_type_id, tenant_idhr.event_typesety_event_type_id, tenant_idRESTRICTRESTRICT
fk_actt_tenant_confirmed_event_typeactt_confirmed_event_type_id, tenant_idhr.event_typesety_event_type_id, tenant_idRESTRICTRESTRICT

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_activity_typesid
  • Unique: uk_actt_tenant_activity_type_idactt_activity_type_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_actt_tenantNObtreetenant_id
idx_actt_tenant_activity_groupNObtreetenant_id, actt_activity_group_id) WHERE (_deleted = false
idx_actt_tenant_activity_type_idNObtreetenant_id, actt_activity_type_id) WHERE (_deleted = false
idx_actt_tenant_notice_templateNObtreetenant_id, actt_notice_template_id) WHERE (_deleted = false
idx_actt_tenant_userNObtreetenant_id, actt_user_id) WHERE (_deleted = false