Skip to main content

pres.attendance_reason_cascades

Schema: pres
English table: pres.attendance_reason_cascades
Italian original table: pres.tabgiu_collegate
Description: Defines cascading rules where a parent attendance reason triggers the calculation of a child reason.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOPrimary Key surrogate.
arc_cascade_idgiu_idintegerNOUnique internal identifier for the cascade rule.
tenant_idtenant_idintegerNOTenant identifier for multi-tenancy isolation.
arc_parent_reason_codecod_giucharacter(4)NO''::bpcharThe source reason code that triggers the cascade.
arc_child_reason_codecod_giu_collegatocharacter(4)NO''::bpcharThe target reason code generated by the cascade.
arc_value_typegiu_value_typenumeric(1,0)NO0Type of value to be generated (e.g., hours, fixed, percentage).
arc_is_manual_overridegiu_forzatobooleanNOfalseFlag to force the child value even if already present.
arc_calculation_expressiongiu_exprcharacter(100)NO''::bpcharFormula used to derive the child value from the parent.
arc_math_operationgiu_operazionesmallintNO1ID of the mathematical operation to apply (e.g., 1 for addition).
arc_keep_same_time_slotgiu_stessa_fascia_orariabooleanNOfalseIf true, the child reason is assigned to the exact same time window as the parent.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_arc_child_reasontenant_id, arc_child_reason_codepres.attendance_reasonstenant_id, ar_codeCASCADERESTRICT
fk_arc_parent_reasontenant_id, arc_parent_reason_codepres.attendance_reasonstenant_id, ar_codeCASCADECASCADE
fk_arc_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_attendance_reason_cascadesid
  • Unique: c_uk_arc_tenant_cascade_idtenant_id, arc_cascade_id
  • Unique: c_uk_arc_tenant_parent_codetenant_id, arc_parent_reason_code

Indexes

No indexes detected.