Skip to main content

hr.event_actions

Schema: hr
English table: hr.event_actions
Italian original table: hr.eventi_azioni
Description: Available actions for event types. Defines the possible actions that can be triggered or performed for each event type (e.g., "Send contract" for hiring events, "Request documents" for onboarding, "Schedule interview" for recruitment).

Overview

  • Columns: 7
  • Primary key: id
  • Outgoing foreign keys: 2
  • Incoming foreign keys: 0
  • Indexes: 3

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOPrimary key (internal surrogate ID).
eva_idevea_idintegerNOBusiness identifier for the event action (unique within tenant).
eva_actionevea_azionecharacter varying(30)NOAction name or description (e.g., "Send employment contract", "Request background check", "Schedule orientation", "Activate badge").
eva_event_type_idevea_tev_idintegerNOEvent type identifier (references hr.event_types.tev_id). Links this action to a specific event type.
tenant_idtenant_idintegerYESTenant identifier for multi-tenancy (references cloud._tenant).
colcustomcolcustomjsonbYES'{}'::jsonbJSON object for custom fields and tenant-specific extensions.
_deleted_deletedbooleanYESfalseSoft delete flag for technical deletion (not functional cancellation).

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_eva_event_typeeva_event_type_id, tenant_idhr.event_typesety_event_type_id, tenant_idRESTRICTRESTRICT
fk_eva_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_event_actionsid
  • Unique: uk_event_actions_eva_id_tenanteva_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_eva_tenantNObtreetenant_id
idx_eva_tenant_eva_idNObtreetenant_id, eva_id) WHERE (_deleted = false
idx_eva_tenant_evt_typeNObtreetenant_id, eva_event_type_id) WHERE (_deleted = false