Skip to main content

hr._q_documents

Schema: hr
English table: hr._q_documents
Italian original table: hr._q_documenti
Description: Queue table for document generation and printing jobs; tracks status, source context and output metadata.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOInternal surrogate primary key.
qdoc_queue_document_idqdoc_idintegerNOBusiness identifier of the queue entry, unique within the tenant.
qdoc_document_template_idqdoc_dt_idintegerNOReference to the document template used for generation.
qdoc_event_idqdoc_eve_idintegerNOReference to the event that triggered the document generation.
qdoc_employment_relationship_idqdoc_rap_idintegerNOReference to the employment relationship associated with this document.
qdoc_status_codeqdoc_statusnumeric(1,0)NOProcessing status code (numeric): tracks lifecycle from pending to completed or failed.
qdoc_source_nameqdoc_sourcecharacter varying(50)NOSource module or context that created the queue entry.
qdoc_inserted_onqdoc_date_insertdateNODate the queue entry was created.
qdoc_last_changed_onqdoc_date_last_changedateNODate of the last status or metadata update.
qdoc_printer_nameqdoc_stampantecharacter varying(100)NOTarget printer for physical output, when applicable.
qdoc_file_nameqdoc_filenamecharacter varying(150)NOName of the generated output file.
tenant_idtenant_idintegerYESTenant identifier for data isolation.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk__q_documents_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk__q_documentsid
  • Unique: uk__q_documents_tenant_queue_document_idqdoc_queue_document_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_qdoc_tenantNObtreetenant_id
idx_qdoc_tenant_document_templateNObtreetenant_id, qdoc_document_template_id
idx_qdoc_tenant_employment_relationshipNObtreetenant_id, qdoc_employment_relationship_id
idx_qdoc_tenant_eventNObtreetenant_id, qdoc_event_id
idx_qdoc_tenant_queue_document_idNObtreetenant_id, qdoc_queue_document_id
idx_qdoc_tenant_statusNObtreetenant_id, qdoc_status_code