mirror of
https://gitea.tendokyu.moe/ppc/amnet.git
synced 2026-09-25 07:38:17 +03:00
fix bad schema relationships
This commit is contained in:
@@ -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}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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"}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user