Skip to main content

pres.daily_attendance_justifications

Schema: pres
English table: pres.daily_attendance_justifications
Italian original table: pres.giust_giorno
Description: Daily breakdown of justifications (leave, sickness, permits) linked to the attendance sheet.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOIdentifier of the related record.
daj_idgig_idintegerNOIdentifier of the related daj.
tenant_idtenant_idintegerNOIdentifier of the related tenant.
daj_employment_idgig_rap_idintegerNO0Identifier of the related daj employment.
daj_dategig_datadateNODate associated with daj date.
daj_reason_codegig_cod_giustcharacter(4)NO''::bpcharCode of daj reason code.
daj_hours_amountgig_ore_giustnumeric(10,2)YES0Value of daj hours amount.
daj_source_typegig_provenienzacharacter(2)NO''::bpcharCode indicating the origin of the entry (e.g., UI, Import, System).
daj_is_automaticgig_automaticobooleanNOfalseBoolean flag for daj is automatic.
daj_is_cancelledgig_annullatobooleanNOfalseBoolean flag for daj is cancelled.
daj_is_manually_forcedgig_forzatobooleanNOfalseBoolean flag for daj is manually forced.
daj_start_time_intgig_dalle_orenumeric(4,0)NO0Start time of the justification in HHMM format (as integer).
daj_end_time_intgig_alle_orenumeric(4,0)NO0Time associated with daj end time int.
daj_document_idgig_doc_idintegerNO0Reference to an external document or attachment (e.g., medical certificate ID).

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_daj_reason_definitiontenant_id, daj_reason_codepres.attendance_reasonstenant_id, ar_codeCASCADERESTRICT
fk_daj_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE
fk_giust_giorno_gig_rap_id_to_rapportitenant_id, daj_employment_idhr.employment_relationshipstenant_id, er_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_daily_attendance_justificationsid
  • Unique: c_uk_daj_id_tenanttenant_id, daj_id

Indexes

NameUniqueMethodColumns / expression
idx_daj_date_lookupNObtreetenant_id, daj_date
idx_daj_date_reason_lookupNObtreetenant_id, daj_date, daj_reason_code
idx_daj_employment_date_lookupNObtreetenant_id, daj_employment_id, daj_date