barcode_scanner/lib/backend/objectbox/objectbox-model.json
mandreshope 09405b5da7 feat: Implement local product storage using ObjectBox
Configures the ObjectBox ProductEntity to allow assigning IDs. Adds a helper to convert ProductStruct to ProductEntity for easier storage.

Saves scanned products directly to the local ObjectBox store.

Updates the ProductListPage to fetch and display locally stored products from ObjectBox upon initialization.

Includes minor UI adjustments in the scanned product component and scanner page, and fixes loading state handling in HomePageModel.
2025-07-03 21:09:49 +03:00

62 lines
1.5 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": "7:1825580906382154543",
"name": "ProductEntity",
"properties": [
{
"id": "1:1853465479129290672",
"name": "id",
"type": 6,
"flags": 129
},
{
"id": "2:4521897043130066476",
"name": "code",
"type": 9
},
{
"id": "3:2561289170534233438",
"name": "name",
"type": 9
},
{
"id": "4:6084891210993334692",
"name": "description",
"type": 9
},
{
"id": "5:883454706727408240",
"name": "price",
"type": 9
},
{
"id": "6:7033704955625644592",
"name": "quantity",
"type": 9
},
{
"id": "7:1825580906382154543",
"name": "image",
"type": 9
}
],
"relations": []
}
],
"lastEntityId": "1:6757833172062715556",
"lastIndexId": "0:0",
"lastRelationId": "0:0",
"lastSequenceId": "0:0",
"modelVersion": 5,
"modelVersionParserMinimum": 5,
"retiredEntityUids": [],
"retiredIndexUids": [],
"retiredPropertyUids": [],
"retiredRelationUids": [],
"version": 1
}