Meta Model, IDs and UIDs
Unlike relational databases like SQLite, ObjectBox swift database does not require you to create a database schema. That does not mean ObjectBox is schema-less. Learn here how it is done.
IDs
UIDs
JSON for consistent IDs
{
"_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:712683617673955584",
"lastPropertyId": "2:5025387500910526208",
"name": "Author",
"properties": [
{
"flags": 1,
"id": "1:6336800942024279296",
"name": "id",
"type": 6
},
{
"id": "2:5025387500910526208",
"name": "name",
"type": 9
}
],
"relations": []
},
{
"id": "2:5608901830082711040",
"lastPropertyId": "6:6001769173142034944",
"name": "Note",
"properties": [
{
"flags": 1,
"id": "1:7180411752564202752",
"name": "id",
"type": 6
},
{
"id": "2:249105953415333376",
"name": "title",
"type": 9
},
{
"id": "3:5661281725891017216",
"name": "text",
"type": 9
},
{
"id": "4:8342334437465755392",
"name": "creationDate",
"type": 10
},
{
"id": "5:8881960381068888832",
"name": "modificationDate",
"type": 10
},
{
"flags": 520,
"id": "6:6001769173142034944",
"indexId": "1:6069708401898380544",
"name": "author",
"relationTarget": "Author",
"type": 11
}
],
"relations": []
}
],
"lastEntityId": "2:5608901830082711040",
"lastIndexId": "1:6069708401898380544",
"lastRelationId": "0:0",
"lastSequenceId": "0:0",
"modelVersion": 5,
"modelVersionParserMinimum": 4,
"retiredEntityUids": [],
"retiredIndexUids": [],
"retiredPropertyUids": [],
"retiredRelationUids": [],
"version": 1
}Meta Model Synchronization
Stable Renames using UIDs
Resolving Meta Model Conflicts
The Nuke Option
Manual conflict resolution
Last updated