Quick fix to link document structure in sqlite.

This commit is contained in:
mike12345567 2024-04-11 18:25:18 +01:00
parent 6e4a66b2e1
commit d6b252013b
1 changed files with 6 additions and 2 deletions

View File

@ -59,8 +59,12 @@ function buildRelationshipDefinitions(
return {
tableId: generateJunctionTableID(tableId, relatedTableId),
definition: {
doc1: SQLiteType.BLOB,
doc2: SQLiteType.BLOB,
["doc1.rowId"]: SQLiteType.TEXT,
["doc1.tableId"]: SQLiteType.TEXT,
["doc1.fieldName"]: SQLiteType.TEXT,
["doc2.rowId"]: SQLiteType.TEXT,
["doc2.tableId"]: SQLiteType.TEXT,
["doc2.fieldName"]: SQLiteType.TEXT,
tableId: SQLiteType.TEXT,
},
}