Adds desire as a tracking category to our app;

no exclude, no fancy nothing else, only pure desire tracking.
This commit is contained in:
emelko
2018-08-02 17:19:21 +02:00
parent f7efadb08a
commit 30839b5589
4 changed files with 91 additions and 3 deletions
+13 -1
View File
@@ -53,6 +53,13 @@ const NoteSchema = {
}
}
const DesireSchema = {
name: 'Desire',
properties: {
value: 'int'
}
}
const CycleDaySchema = {
name: 'CycleDay',
primaryKey: 'date',
@@ -77,6 +84,10 @@ const CycleDaySchema = {
note: {
type: 'Note',
optional: true
},
desire: {
type: 'Desire',
optional: true
}
}
}
@@ -88,7 +99,8 @@ const realmConfig = {
BleedingSchema,
MucusSchema,
CervixSchema,
NoteSchema
NoteSchema,
DesireSchema
],
// we only want this in dev mode
deleteRealmIfMigrationNeeded: true