Skip to main content

hr.payslips

Schema: hr
English table: hr.payslips
Italian original table: hr.in_cedolini
Description: Stores employee payslips (PDF and metadata) imported from payroll systems.

Overview

  • Columns: 27
  • Primary key: id
  • Outgoing foreign keys: 1
  • Incoming foreign keys: 0
  • Indexes: 6

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOInternal primary key.
ps_idced_idintegerNOUnique identifier from the payroll provider.
employment_relationship_idced_rap_idintegerNOReference to the employee relationship.
file_idced_id_fileintegerNOIdentifier of the document file.
versionced_versioneintegerNOVersion number of the payslip document.
employee_external_codeced_coddipcharacter varying(6)NOLegacy payroll code for the employee.
page_fromced_pag_dalintegerNOStarting page number in the source PDF.
page_toced_pag_alintegerNOEnding page number in the source PDF.
filenameced_nomefilecharacter varying(200)NOOriginal name of the payslip file.
file_contentced_filebyteaNOBinary content of the payslip (PDF).
created_onced_data_creazionecharacter varying(8)NOCreation date (YYYYMMDD).
modified_onced_data_modidficacharacter varying(8)NOLast modification date (YYYYMMDD).
acquired_onced_data_acquisizionecharacter varying(8)NOImport date into the system (YYYYMMDD).
acquired_at_timeced_ora_acquisizioneintegerNOImport time into the system (seconds/HHMMSS).
is_importedced_importbooleanNOFlag indicating if the record was bulk imported.
payroll_periodced_periodocharacter varying(7)NOReference period (e.g., YYYY-MM).
payment_month_indexced_mensilitaintegerNOAdditional month index (e.g., 13th or 14th salary).
is_enabledced_enabledbooleanNOFlag for payslip visibility/availability.
first_opened_atced_datetime_prima_aperturacharacter varying(14)NOTimestamp of first access by employee (YYYYMMDDHHMMSS).
error_messageced_errorecharacter varying(100)NODescription of any processing errors.
external_linkced_linktextNOURL or path to an external document storage.
last_opened_atced_datetime_ultima_aperturacharacter varying(14)NOTimestamp of last access by employee (YYYYMMDDHHMMSS).
person_idced_ana_idintegerNOReference to the person registry.
payslip_type_idced_xtipced_idintegerNOReference to the type of payslip (standard, bonus, etc.).
tenant_idtenant_idintegerYESMulti-tenancy identifier.
colcustomcolcustomjsonbYES'{}'::jsonbJSON field for custom metadata.
_deleted_deletedbooleanYESfalseSoft delete technical flag.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_payslips_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_payslipsid
  • Unique: uk_payslips_ps_idps_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_ps_employmentNObtreetenant_id, employment_relationship_id) WHERE (_deleted = false
idx_ps_external_idNObtreetenant_id, ps_id) WHERE (_deleted = false
idx_ps_periodNObtreetenant_id, payroll_period) WHERE (_deleted = false
idx_ps_personNObtreetenant_id, person_id) WHERE (_deleted = false
idx_ps_tenantNObtreetenant_id
idx_ps_typeNObtreetenant_id, payslip_type_id) WHERE (_deleted = false