fix bad schema relationships

This commit is contained in:
ppc
2025-04-01 20:20:06 +01:00
parent faf688fc0b
commit c6f9251cf2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ export class AMCard extends Realm.Object<AMCard> implements AMCardData {
name: {type: "string", default: "New Card", indexed: true},
added: {type: "date", default: new Date(), indexed: true},
lastUsed: {type: "date", optional: true, indexed: true},
usageHistory: {type: "linkingObjects", objectType: "cardUsageHistory", property: "_id"},
usageHistory: {type: "linkingObjects", objectType: "cardUsageHistory", property: "card"},
physicalCardData: {type: "object", objectType: "physicalCard", optional: true}
}
};
+1 -1
View File
@@ -30,7 +30,7 @@ export class AMCardRecentUse extends Realm.Object<AMCardRecentUse> {
properties: {
gameId: "string",
card: {type: "object", objectType: "card", optional: false}
card: {type: "object", objectType: "card"}
}
}