Skip to main content

hr.inventory_items

Schema: hr
English table: hr.inventory_items
Italian original table: hr.x_tipi_articoli
Description: Inventory items (articles) with stock quantities and classification by type and unit of measure.

Overview

  • Columns: 13
  • Primary key: id
  • Outgoing foreign keys: 3
  • Incoming foreign keys: 1
  • Indexes: 4

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOPrimary key of the record.
itm_idtipoart_idintegerNOBusiness identifier of the inventory item, unique within the tenant.
itm_codetipoart_descrizionecharacter varying(30)NOItem code.
itm_item_type_idtenant_idintegerNOReference to the item type.
itm_description``character varying(100)NOItem description.
itm_stock_qty``numeric(6,2)NOCurrent stock quantity.
itm_is_disabled``booleanNOIndicates whether the item is disabled.
tipoartmis_id``integerNOIdentifier of the related tipoartmis record.
itm_min_stock_qty``numeric(6,2)NOMinimum stock quantity threshold.
tenant_id``integerYESTenant identifier for row-level partitioning.
colcustom``jsonbYES'{}'::jsonbCustom fields in JSON format.
_deleted``booleanYESfalseSoft delete flag.
itm_unit_type_id``bigintYESReference to the unit of measure type.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_init_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE
fk_inventory_items_item_type_iditm_item_type_id, tenant_idhr.x_tipi_articolitipoart_id, tenant_idRESTRICTRESTRICT
fk_inventory_items_unit_type_iditm_unit_type_id, tenant_idhr.x_item_units_of_measurexium_id, tenant_idRESTRICTRESTRICT

Referenced by

From tableForeign keySource columnsTarget columns
hr.in_articoli_magazzinofk_art_idartma_art_id, tenant_iditm_id, tenant_id

Constraints

  • Primary key: pk_inventory_itemsid
  • Unique: c_uk_init_id_tenantitm_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_itm_tenantNObtreetenant_id
idx_itm_tenant_item_typeNObtreetenant_id, itm_item_type_id) WHERE (_deleted = false
idx_itm_tenant_itmNObtreetenant_id, itm_id) WHERE (_deleted = false
idx_itm_tenant_unit_typeNObtreetenant_id, itm_unit_type_id) WHERE (_deleted = false