Add note symptom view

This commit is contained in:
Julia Friesel
2018-07-24 11:19:58 +02:00
parent 2d3c74db02
commit d44b6c348e
4 changed files with 127 additions and 54 deletions
+13 -1
View File
@@ -46,6 +46,13 @@ const CervixSchema = {
}
}
const NoteSchema = {
name: 'Note',
properties: {
value: 'string'
}
}
const CycleDaySchema = {
name: 'CycleDay',
primaryKey: 'date',
@@ -66,6 +73,10 @@ const CycleDaySchema = {
cervix: {
type: 'Cervix',
optional: true
},
note: {
type: 'Note',
optional: true
}
}
}
@@ -76,7 +87,8 @@ const realmConfig = {
TemperatureSchema,
BleedingSchema,
MucusSchema,
CervixSchema
CervixSchema,
NoteSchema
],
// we only want this in dev mode
deleteRealmIfMigrationNeeded: true