Skip to main content

pres.attendance_status

Schema: pres
English table: pres.attendance_status
Italian original table: pres.asspre
Description: Real-time dashboard for employee attendance, monitoring presence, absence, late arrivals, and justification reasons.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOIdentifier of the related record.
ast_idass_idintegerNOInternal unique identifier for the attendance record.
tenant_idtenant_idintegerNOIdentifier of the related tenant.
ast_employment_idass_rap_idintegerNO0Reference to the employee employment contract (rapporto di lavoro).
ast_is_absentass_assentebooleanNOfalseFlag indicating if the employee is currently marked as absent.
ast_entrance_timeass_ora_ingressocharacter(10)YES''::bpcharActual or expected entrance time recorded for the day.
ast_reason_codeass_causalecharacter(4)YESNULL::bpcharCode representing the reason for presence/absence (causale).
ast_date_fromass_periodo_daldateNODate associated with ast date from.
ast_date_toass_periodo_aldateNODate associated with ast date to.
ast_theoretical_schedule_codeass_teoricocharacter(4)NO''::bpcharCode for the theoretical work schedule assigned to the employee.
ast_full_nameass_nominativocharacter(50)YES''::bpcharName of ast full name.
ast_company_nameass_ragione_soccharacter(60)YES''::bpcharName of ast company name.
ast_late_minutesass_ritardonumeric(4,0)YES0Total minutes of late arrival calculated for the shift.
ast_department_codeass_repartocharacter(4)NO''::bpcharCode of ast department code.
ast_department_descriptionass_desrepcharacter(100)YES''::bpcharDescription of ast department description.
ast_justification_descriptionass_desgiustcharacter(100)YES''::bpcharDescription of ast justification description.
ast_is_presentass_presentebooleanNOfalseFlag indicating if the employee is currently physically present.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_asspre_ass_rap_id_to_rapportitenant_id, ast_employment_idhr.employment_relationshipstenant_id, er_idRESTRICTCASCADE
fk_ast_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_attendance_statusid
  • Unique: c_uk_ast_employment_tenanttenant_id, ast_employment_id
  • Unique: c_uk_ast_id_tenanttenant_id, ast_id

Indexes

NameUniqueMethodColumns / expression
idx_ast_absent_lookupNObtreetenant_id, ast_is_absent
idx_ast_present_lookupNObtreetenant_id, ast_is_present