Skip to main content

hr.document_model_fields

Schema: hr
English table: hr.document_model_fields
Italian original table: hr.in_docmodel_fields
Description: Configuration of fields within a document model, including UI properties and validation rules.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOInternal surrogate primary key.
dmf_iddmf_idintegerNOUnique identifier for the document model field within a tenant.
dmf_document_model_iddmf_dm_idintegerNOReference to the parent document model.
dmf_field_definition_iddmf_ifld_idintegerNOReference to the field definition (metadata).
dmf_row_indexdmf_rowintegerNODisplay row order within the document UI.
dmf_document_model_step_iddmf_dms_idintegerNOReference to the workflow step where this field is active.
dmf_is_labeldmf_islabelbooleanNOFlag indicating if the field behaves as a static label.
dmf_default_valuedmf_default_valuecharacter varying(50)NODefault value assigned to the field.
dmf_is_readonlydmf_readonlybooleanNOFlag indicating if the field is read-only.
dmf_is_hiddendmf_hiddenbooleanNOFlag indicating if the field is hidden from the UI.
dmf_is_requireddmf_requiredbooleanNOFlag indicating if the field is mandatory.
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_fields_definitiondmf_field_definition_id, tenant_idhr.documents_field_definitionsdfd_id, tenant_idRESTRICTRESTRICT
fk_document_model_fields_stepdmf_document_model_step_id, tenant_idhr.document_model_stepsdms_id, tenant_idRESTRICTRESTRICT
fk_document_model_fields_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_document_model_fieldsid
  • Unique: uk_document_model_fields_iddmf_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_dmf_definition_tenantNObtreetenant_id, dmf_field_definition_id) WHERE (_deleted = false
idx_dmf_document_model_tenantNObtreetenant_id, dmf_document_model_id) WHERE (_deleted = false
idx_dmf_id_tenantNObtreetenant_id, dmf_id) WHERE (_deleted = false
idx_dmf_step_tenantNObtreetenant_id, dmf_document_model_step_id) WHERE (_deleted = false
idx_dmf_tenantNObtreetenant_id