Skip to main content

pres.leave_transformation_rules

Schema: pres
English table: pres.leave_transformation_rules
Italian original table: pres.cnf_ferie_rule
Description: Rules for automatically transforming generic absence reasons into specific ones based on priority and thresholds.

Overview

  • Columns: 15
  • Primary key: id
  • Outgoing foreign keys: 4
  • Incoming foreign keys: 0
  • Indexes: 3

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOIdentifier of the related record.
ltr_idfer_idintegerNOIdentifier of the related ltr.
tenant_idtenant_idintegerNOIdentifier of the related tenant.
ltr_company_idfer_az_idintegerNOIdentifier of the related ltr company.
ltr_start_datefer_dalla_datadateNODate associated with ltr start date.
ltr_end_datefer_alla_datadateNODate associated with ltr end date.
ltr_execution_priorityfer_sequenzaintegerNOThe order in which rules are evaluated (lowest first).
ltr_source_reason_codefer_causale_originecharacter(4)NO''::bpcharThe original reason code entered in the system.
ltr_counter_typefer_tipo_contatorecharacter(6)NO''::bpcharValue of ltr counter type.
ltr_target_reason_codefer_codicecharacter(4)NO''::bpcharThe final reason code after the rule is applied.
ltr_counter_idfer_cnt_idintegerNOIdentifier of the related ltr counter.
ltr_absence_typefer_tipo_assenzacharacter(2)NO''::bpcharValue of ltr absence type.
ltr_max_minutes_thresholdfer_max_minutiintegerNOMaximum duration in minutes for this rule to trigger.
ltr_min_minutes_thresholdfer_limite_minimointegerNOValue of ltr min minutes threshold.
ltr_validity_periodfer_periododaterangeYESGENERATED: daterange(ltr_start_date, ltr_end_date, '[]'::text)The daterange during which this rule is active.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_cnf_ferie_rule_fer_az_id_to_aziendetenant_id, ltr_company_idhr.companiestenant_id, cmp_idCASCADERESTRICT
fk_ltr_source_reasontenant_id, ltr_source_reason_codepres.attendance_reasonstenant_id, ar_codeCASCADERESTRICT
fk_ltr_target_reasontenant_id, ltr_target_reason_codepres.attendance_reasonstenant_id, ar_codeCASCADERESTRICT
fk_ltr_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_leave_transformation_rulesid
  • Unique: c_uk_ltr_id_tenanttenant_id, ltr_id

Indexes

NameUniqueMethodColumns / expression
idx_cnf_ferie_rule_fer_az_idNObtreetenant_id, ltr_company_id
idx_cnf_ferie_rule_fer_causale_origineNObtreetenant_id, ltr_source_reason_code
idx_cnf_ferie_rule_fer_periodoNOgistltr_validity_period