Skip to main content

pres.attendance_alert_definitions

Schema: pres
English table: pres.attendance_alert_definitions
Italian original table: pres.tab_avvisi
Description: User-defined rules for attendance alerts and anomaly detection.

Overview

  • Columns: 26
  • Primary key: id
  • Outgoing foreign keys: 1
  • Incoming foreign keys: 1
  • Indexes: 1

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOPrimary Key.
aad_alert_idav_idintegerNOInternal alert identifier.
tenant_idtenant_idintegerNOTenant identifier for data isolation.
aad_codecod_avcharacter(4)NO''::bpcharUnique mnemonic code for the alert definition.
aad_descriptionav_descrizionecharacter(80)NO''::bpcharHuman-readable description of the alert.
aad_message_templateav_messaggiotextNO''::textThe message text to be displayed or sent when the alert triggers.
aad_typeav_tiponumeric(1,0)NO0Category or type of alert.
aad_periodicityav_periodonumeric(1,0)NO0Frequency or period considered for the alert calculation.
aad_value_type_1av_valore_tipo1numeric(1,0)NO0Value of aad value type 1.
aad_value_type_2av_valore_tipo2character(10)NO''::bpcharValue of aad value type 2.
aad_calculation_expressionav_valore_exprtextNO''::textFormula or SQL-like expression used to evaluate the alert condition.
aad_c1_operatorav_cri1_opernumeric(1,0)NO0Comparison operator for the first criterion.
aad_c1_min_valueav_cri1_minimonumeric(4,0)YES0Lower bound for the first criterion.
aad_c1_max_valueav_cri1_massimonumeric(4,0)YES0Upper bound for the first criterion.
aad_c1_logic_operatorav_cri1_logicnumeric(1,0)NO0Logical operator (AND/OR) to connect with the next criterion.
aad_c2_operatorav_cri2_opernumeric(1,0)NO0Value of aad c2 operator.
aad_c2_min_valueav_cri2_minimonumeric(4,0)YES0Value of aad c2 min value.
aad_c2_max_valueav_cri2_massimonumeric(4,0)YES0Value of aad c2 max value.
aad_c2_logic_operatorav_cri2_logicnumeric(1,0)NO0Value of aad c2 logic operator.
aad_c3_operatorav_cri3_opernumeric(1,0)NO0Value of aad c3 operator.
aad_c3_min_valueav_cri3_minimonumeric(4,0)YES0Value of aad c3 min value.
aad_c3_max_valueav_cri3_massimonumeric(4,0)YES0Value of aad c3 max value.
aad_c3_logic_operatorav_cri3_logicnumeric(1,0)NO0Value of aad c3 logic operator.
aad_is_enabled_for_webav_webbooleanNOfalseIf true, the alert is visible/active on the web portal.
aad_block_anomaly_reporting_legacyavvi_blocca_segnalazione_anomaliabooleanNOfalseBoolean flag for aad block anomaly reporting legacy.
aad_block_anomaly_reportingav_blocca_segnalazione_anomaliabooleanNOtrueIf true, prevents the system from flagging this condition as a blocking anomaly.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_aad_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE

Referenced by

From tableForeign keySource columnsTarget columns
pres.attendance_alertsfk_aal_alert_typetenant_id, aal_alert_codetenant_id, aad_code

Constraints

  • Primary key: pk_attendance_alert_definitionsid
  • Unique: c_uk_aad_tenant_alert_idtenant_id, aad_alert_id
  • Unique: c_uk_aad_tenant_codetenant_id, aad_code

Indexes

NameUniqueMethodColumns / expression
idx_aad_tenant_alert_idNObtreetenant_id, aad_alert_id