Skip to main content

pres.clocking_reason_mappings

Schema: pres
English table: pres.clocking_reason_mappings
Italian original table: pres.tabcaubol
Description: Mappings between codes entered on hardware terminals and system justification/shift codes.

Overview

  • Columns: 16
  • Primary key: id
  • Outgoing foreign keys: 3
  • Incoming foreign keys: 0
  • Indexes: 1

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOInternal surrogate primary key.
crm_mapping_idcaubol_idintegerNOUnique identifier for the mapping within the tenant.
tenant_idtenant_idintegerNOTenant identifier for data isolation.
crm_terminal_codecod_caubolcharacter(4)NO''::bpcharThe alphanumeric code typed by the employee on the physical terminal.
crm_descriptioncaubol_descrizionecharacter(40)NO''::bpcharHuman-readable description of the terminal reason.
crm_target_shift_codecaubol_cod_orariocharacter(4)NO''::bpcharReference to the shift code (orari) to be applied if this mapping is used.
crm_target_justification_codecaubol_cod_giustcharacter(4)NO''::bpcharReference to the attendance reason (attendance_reasons) to be triggered.
crm_justified_hourscaubol_ore_giustnumeric(5,2)YES0Fixed number of hours to justify when this code is used.
crm_notescaubol_notetextNO''::textTechnical or administrative notes.
crm_ignore_clockingcaubol_ignorabooleanNOfalseIf true, the clocking is stored but ignored by the calculation engine.
crm_processing_modecaubol_modonumeric(1,0)NO0Bitmask or ID defining the processing logic (e.g., standard, entry-only, exit-only).
crm_web_visibility_modecaubol_visibile_webnumeric(1,0)YES0Flag/ID determining if this reason is selectable via web portal.
crm_internal_alt_codecaubol_codicecharacter(4)YES''::bpcharSecondary legacy code for hardware compatibility.
crm_category_typecaubol_tipointegerYES0Classification type for the mapping (e.g., system, user-defined).
crm_merge_clockings_typecaubol_uniscismallintYES0Logic to handle overlapping or consecutive clockings with this reason.
crm_usage_typecaubol_utilizzonumeric(1,0)YES0Defines where this code can be used (Terminal only, Web only, Both).

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_crm_justificationtenant_id, crm_target_justification_codepres.attendance_reasonstenant_id, ar_codeCASCADERESTRICT
fk_crm_shifttenant_id, crm_target_shift_codepres.shift_definitionstenant_id, shd_codeCASCADERESTRICT
fk_crm_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_clocking_reason_mappingsid
  • Unique: c_uk_crm_tenant_mapping_idtenant_id, crm_mapping_id
  • Unique: c_uk_crm_tenant_terminal_codetenant_id, crm_terminal_code

Indexes

NameUniqueMethodColumns / expression
idx_crm_tenant_internal_codeNObtreetenant_id, crm_internal_alt_code