
Includes an `image` field in the `ProductStruct` and `ProductEntity` data models. Updates the ObjectBox schema and regenerates the necessary code to persist the new field. Refactors the `ProductScannedComponent` to accept a `ProductStruct` object, simplifying parameter passing. Updates the `ScannerPage` to build and pass the `ProductStruct` to the component, enabling the display of the product image and using the structured data for other details like quantity. The 'Marque' display is replaced with 'Quantité' in the component.
62 lines
1.5 KiB
JSON
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": 1
|
|
},
|
|
{
|
|
"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
|
|
} |