Adding pain with 7 boolean values to track

This commit is contained in:
Bl00dyMarie
2018-08-17 14:14:51 +02:00
parent b09137772c
commit 30752a05c2
7 changed files with 1261 additions and 353 deletions
+18 -1
View File
@@ -76,6 +76,18 @@ const SexSchema = {
}
}
const PainSchema = {
name: 'Pain',
properties: {
cramps: { type: 'bool', optional: true },
ovulationPain: { type: 'bool', optional: true },
headache: { type: 'bool', optional: true },
backache: { type: 'bool', optional: true },
nausea: { type: 'bool', optional: true },
tenderBreasts: { type: 'bool', optional: true }
}
}
const CycleDaySchema = {
name: 'CycleDay',
primaryKey: 'date',
@@ -108,6 +120,10 @@ const CycleDaySchema = {
sex: {
type: 'Sex',
optional: true
},
pain: {
type: 'Pain',
optional: true
}
}
}
@@ -121,7 +137,8 @@ const realmConfig = {
CervixSchema,
NoteSchema,
DesireSchema,
SexSchema
SexSchema,
PainSchema
],
// we only want this in dev mode
deleteRealmIfMigrationNeeded: true