barcode_scanner/lib/backend/objectbox/objectbox-model.json
mandreshope 1d331acc54 feat: Streamlines product data and stock picking API
Refactors the product data model to primarily store `id`, `barcode`, and `displayName`. This simplifies the product structure, focusing on essential attributes for inventory and scanning operations.

Optimizes API calls for stock picking to fetch more relevant product details. Unnecessary fields are removed, and specific product attributes like `barcode` and `quantity` are now explicitly requested for stock moves.

Moves `StockPickingRecordModel` to its own dedicated file for improved code organization and maintainability. Updates all affected UI components and scanner logic to align with the revised product model.
2025-07-30 12:47:08 +03:00

49 lines
1.3 KiB
JSON

{
"_note1": "KEEP THIS FILE! Check it into a version control system (VCS) like git.",
"_note2": "ObjectBox manages crucial IDs for your object model. See docs for details.",
"_note3": "If you have VCS merge conflicts, you must resolve them according to ObjectBox docs.",
"entities": [
{
"id": "1:6757833172062715556",
"lastPropertyId": "9:7701820943545445010",
"name": "ProductEntity",
"properties": [
{
"id": "1:1853465479129290672",
"name": "id",
"type": 6,
"flags": 129
},
{
"id": "8:6901756236330116550",
"name": "barcode",
"type": 9
},
{
"id": "9:7701820943545445010",
"name": "displayName",
"type": 9
}
],
"relations": []
}
],
"lastEntityId": "1:6757833172062715556",
"lastIndexId": "0:0",
"lastRelationId": "0:0",
"lastSequenceId": "0:0",
"modelVersion": 5,
"modelVersionParserMinimum": 5,
"retiredEntityUids": [],
"retiredIndexUids": [],
"retiredPropertyUids": [
4521897043130066476,
2561289170534233438,
6084891210993334692,
883454706727408240,
7033704955625644592,
1825580906382154543
],
"retiredRelationUids": [],
"version": 1
}