Skip to main content

hr.document_model_step_actions

Schema: hr
English table: hr.document_model_step_actions
Italian original table: hr.in_docmodel_step_action
Description: Actions available in each workflow step and their impact on document status and ownership.

Overview

  • Columns: 16
  • Primary key: id
  • Outgoing foreign keys: 4
  • Incoming foreign keys: 0
  • Indexes: 5

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOInternal surrogate primary key.
dmsa_iddmsa_idintegerNOUnique identifier for the action within a tenant.
dmsa_step_iddmsa_dms_idintegerNOReference to the current workflow step.
dmsa_holder_type_codedmsa_typecharacter varying(3)NOType of entity currently holding the document for this action.
dmsa_action_namedmsa_actioncharacter varying(100)NODescriptive name of the action (e.g., Approve, Reject).
dmsa_next_status_codedmsa_next_statusintegerNOStatus code the document will transition to after this action.
dmsa_next_execution_orderdmsa_next_stepintegerNOThe next step order in the sequence after this action.
dmsa_next_holder_type_codedmsa_next_detentorecharacter varying(100)NOType of entity that will hold the document next.
dmsa_transition_codedmsa_ts_codecharacter varying(2)NOTechnical transition code.
dmsa_log_messagedmsa_text_logcharacter varying(20)NOText to be recorded in the audit log for this action.
dmsa_minimum_permission_leveldmsa_livello_minimonumeric(2,0)NOMinimum authority level required to execute this action.
dmsa_next_holder_iddmsa_next_detentore_idintegerNOSpecific ID of the next holder if applicable.
dmsa_is_automaticdmsa_automaticbooleanNOFlag indicating if the action is triggered automatically by the system.
tenant_idtenant_idintegerYESTenant identifier for data isolation.
colcustomcolcustomjsonbYES'{}'::jsonbJSON field for custom data.
_deleted_deletedbooleanYESfalseTechnical soft delete flag.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_document_model_step_actions_holder_typedmsa_holder_type_code, tenant_idhr.x_holder_typesxht_code, tenant_idRESTRICTRESTRICT
fk_document_model_step_actions_next_holderdmsa_next_holder_type_code, tenant_idhr.x_holder_typesxht_code, tenant_idRESTRICTRESTRICT
fk_document_model_step_actions_stepdmsa_step_id, tenant_idhr.document_model_stepsdms_id, tenant_idRESTRICTRESTRICT
fk_document_model_step_actions_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_document_model_step_actionsid
  • Unique: uk_document_model_step_actions_iddmsa_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_dmsa_id_tenantNObtreetenant_id, dmsa_id) WHERE (_deleted = false
idx_dmsa_next_holder_tenantNObtreetenant_id, dmsa_next_holder_id) WHERE (_deleted = false
idx_dmsa_step_holder_type_tenantNObtreetenant_id, dmsa_step_id, dmsa_holder_type_code) WHERE (_deleted = false
idx_dmsa_step_tenantNObtreetenant_id, dmsa_step_id) WHERE (_deleted = false
idx_dmsa_tenantNObtreetenant_id