Skip to main content

hr._fields

Schema: hr
English table: hr._fields
Italian original table: hr._fields
Description: Configuration table that defines application fields and their validation, rendering and reporting metadata.

Overview

  • Columns: 21
  • Primary key: id
  • Outgoing foreign keys: 1
  • Incoming foreign keys: 3
  • Indexes: 5

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOPrimary key.
fld_field_idfld_idintegerNOInternal field identifier (unique per tenant).
fld_table_namefld_tablecharacter varying(50)NOName of the table the field belongs to.
fld_field_namefld_namecharacter varying(40)NOTechnical name of the field/column.
fld_min_lengthfld_min_lengthnumeric(3,0)NOMinimum allowed length for the field value.
fld_max_lengthfld_max_lenghtnumeric(3,0)NOMaximum allowed length for the field value.
fld_data_typefld_typecharacter varying(5)NOLogical data type identifier for the field.
fld_decimal_placesfld_decimalnumeric(1,0)NONumber of decimal places allowed/expected for numeric values.
fld_input_typefld_inputcharacter varying(10)NOInput widget/type used to edit the field.
fld_parametersfld_paramcharacter varying(50)NOAdditional parameters used by the input/renderer.
fld_check_expressionfld_checkcharacter varying(50)NOValidation check expression or rule identifier.
fld_regex_patternfld_regexpcharacter varying(100)NORegular expression pattern used for validation.
fld_on_blur_handlerfld_onblurcharacter varying(50)NOClient-side handler executed when the field loses focus (onblur).
fld_list_orderfld_lista_ordernumeric(2,0)NOOrdering position when the field is shown in lists.
fld_list_visiblefld_lista_visiblenumeric(2,0)NOVisibility flag/level for list views (stored as numeric).
fld_report_expressionfld_expr_reporttextNOExpression used to render the field in reports.
fld_group_codefld_groupnumeric(1,0)NOGrouping code used to categorize fields.
fld_aggregation_function_type_idfld_xfunag_idcharacter varying(10)NOAggregation function type identifier used for reporting/analytics.
fld_is_requiredfld_requiredbooleanNOWhether the field is mandatory.
fld_field_codefld_codeintegerNOField code used as a stable reference across configuration tables (unique per tenant).
tenant_idtenant_idintegerYESTenant identifier.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk__fields_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

From tableForeign keySource columnsTarget columns
hr._data_area_field_linksfk__data_area_field_links_fielddaf_field_code, tenant_idfld_field_code, tenant_id
hr._field_attributesfk__field_attributes_fieldfad_field_code, tenant_idfld_field_code, tenant_id
hr._fields_tablefk__fields_table_fieldfldt_field_code, tenant_idfld_field_code, tenant_id

Constraints

  • Primary key: pk__fieldsid
  • Unique: uk__fields_tenant_field_codefld_field_code, tenant_id
  • Unique: uk__fields_tenant_field_idfld_field_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_fld_tenantNObtreetenant_id
idx_fld_tenant_field_codeNObtreetenant_id, fld_field_code
idx_fld_tenant_field_idNObtreetenant_id, fld_field_id
idx_fld_tenant_tableNObtreetenant_id, fld_table_name
idx_fld_tenant_visible_orderNObtreetenant_id, fld_list_visible, fld_list_order