Columns
| Column | Description | API Field Name |
|---|---|---|
inventory_id | Part of composite primary key. Inventory unique identifier. | id |
inventory_is_deleted | Whether the global inventory record is deleted. | |
code | The unique inventory code for this global inventory item. | code |
kind | The kind/type of inventory item (e.g., STANDARD, CUSTOM, CUSTOM_ROLLUP). | kind |
inventory_category_id | Foreign key to the inventory_category table. | category_id |
global_preferences_name | The name of the inventory item from global inventory. | name |
global_preferences_unit_of_measure | The unit of measure from global inventory. | unit_of_measure |
organization_preference_id | Foreign key to the inventory_corporate_preference table. The unique identifier for the organization/group inventory preference record. Null if no org preference exists. | |
organization_preferences_is_deleted | Whether the organization/group inventory preference record is deleted. Null if no org preference exists. | |
organization_preferences_is_enabled | Whether the inventory item is enabled at the organization/group level. Null if no organization preference exists for this inventory code. | organization_preferences.is_enabled |
organization_preferences_name | Organization-level override name for the inventory item. | organization_preferences.name |
organization_preferences_unit_of_measure | Organization-level override for unit of measure. | organization_preferences.unit_of_measure |
organization_preferences_grade | The grade classification set at the organization level. | organization_preferences.grade |
organization_preferences_code | Organization-specific code for the inventory item. | |
effective_preferences_is_enabled | False if no organization preference exists, otherwise the organization is_enabled value. | effective_preferences.is_enabled |
effective_preferences_name | Resolved using hierarchy with nullif for empty strings: organization → global inventory name. | effective_preferences.name |
effective_preferences_unit_of_measure | Resolved using hierarchy: organization → global. | effective_preferences.unit_of_measure |
effective_preferences_grade | Resolved from organization preferences only. | effective_preferences.grade |
last_updated | The timestamp when this inventory record was last updated. This is the most recent timestamp from all related tables. | |
vetcove_corporate_id | The unique identifier of the corporate group associated with this record. |
SQL Definition
View SQL
View SQL