Skip to main content

hr.in_documents_log

Schema: hr
English table: hr.in_documents_log
Italian original table: hr.in_documents_log
Description: Audit and history records for in documents log.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOSurrogate primary key.
docl_iddocl_idintegerNOIdentifier of the related docl record.
docl_doc_iddocl_doc_idintegerNOIdentifier of the related docl doc record.
docl_rap_iddocl_rap_idintegerYESIdentifier of the related docl rap record.
docl_datedocl_datedateNODate associated with the record.
docl_timedocl_timeintegerNONumeric value.
docl_dmsa_iddocl_dmsa_idintegerNOIdentifier of the related docl dmsa record.
docl_delegato_iddocl_delegato_idintegerNOIdentifier of the related docl delegato record.
docl_admindocl_adminbooleanNOBoolean flag.
docl_file_allegatodocl_file_allegatointegerNONumeric value.
tenant_idtenant_idintegerYESTenant identifier for data isolation.
colcustomcolcustomjsonbYES'{}'::jsonbJSON payload containing additional attributes.
_deleted_deletedbooleanYESfalseFlag indicating whether the record is soft-deleted.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_doc_iddocl_doc_id, tenant_idhr.documentsdoc_id, tenant_idRESTRICTRESTRICT
fk_rap_iddocl_rap_id, tenant_idhr.employment_relationshipser_id, tenant_idRESTRICTCASCADE
fk_tenant_idtenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: in_documents_log_pkeyid
  • Unique: k_docl_id_uniquedocl_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_in_documents_log_docl_delegato_id_tenantNObtreetenant_id, docl_delegato_id) WHERE (_deleted = false
idx_in_documents_log_docl_dmsa_id_tenantNObtreetenant_id, docl_dmsa_id) WHERE (_deleted = false
idx_in_documents_log_docl_doc_id_tenantNObtreetenant_id, docl_doc_id) WHERE (_deleted = false
idx_in_documents_log_docl_id_tenantNObtreetenant_id, docl_id) WHERE (_deleted = false
idx_in_documents_log_docl_rap_id_tenantNObtreetenant_id, docl_rap_id) WHERE (_deleted = false
idx_in_documents_log_tenantNObtreetenant_id