Skip to main content

pres.attendance_alerts

Schema: pres
English table: pres.attendance_alerts
Italian original table: pres.avvisi
Description: Alerts and anomalies generated during the timesheet calculation process (e.g., missing clock-ins, excessive lateness).

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOIdentifier of the related record.
aal_idavvi_idintegerNOUnique identifier for the alert instance.
tenant_idtenant_idintegerNOIdentifier of the related tenant.
aal_employment_idavvi_rap_idintegerNO0The employee affected by the alert.
aal_dateavvi_datadateNOThe specific date the alert refers to.
aal_alert_codeavvi_codicecharacter(4)NO''::bpcharReference code for the type of anomaly (e.g., missing clock-in).
aal_is_deletedavvi_deletedbooleanNOfalseSoft-delete flag for the alert.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_aal_alert_typetenant_id, aal_alert_codepres.attendance_alert_definitionstenant_id, aad_codeCASCADERESTRICT
fk_aal_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE
fk_avvisi_avvi_rap_id_to_rapportitenant_id, aal_employment_idhr.employment_relationshipstenant_id, er_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_attendance_alertsid
  • Unique: c_uk_aal_code_tenanttenant_id, aal_alert_code
  • Unique: c_uk_aal_id_tenanttenant_id, aal_id

Indexes

NameUniqueMethodColumns / expression
idx_aal_date_lookupNObtreetenant_id, aal_date
idx_aal_employment_date_lookupNObtreetenant_id, aal_employment_id, aal_date