mirror of
https://gitea.tendokyu.moe/ppc/amnet.git
synced 2026-10-07 22:28:13 +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},
|
name: {type: "string", default: "New Card", indexed: true},
|
||||||
added: {type: "date", default: new Date(), indexed: true},
|
added: {type: "date", default: new Date(), indexed: true},
|
||||||
lastUsed: {type: "date", optional: true, 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}
|
physicalCardData: {type: "object", objectType: "physicalCard", optional: true}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export class AMCardRecentUse extends Realm.Object<AMCardRecentUse> {
|
|||||||
|
|
||||||
properties: {
|
properties: {
|
||||||
gameId: "string",
|
gameId: "string",
|
||||||
card: {type: "object", objectType: "card", optional: false}
|
card: {type: "object", objectType: "card"}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user