Skip to content

Commit

Permalink
data model refresh WIP b00tc4mp#212
Browse files Browse the repository at this point in the history
  • Loading branch information
annagonzalez9 committed Nov 24, 2024
1 parent 8f0ebb8 commit f016fbf
Showing 1 changed file with 12 additions and 43 deletions.
55 changes: 12 additions & 43 deletions staff/anna-gonzalez/project/doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ User
- read data about your current cycle
- read events reminders
- read reports of the last cycles
- read predictions for the next cycle
- read predictions for the next cycle in the calendar
- read user profile
- read tips regarding your week of the cycle

Expand Down Expand Up @@ -59,26 +59,22 @@ Cycles
- user (User.id)
- periodStart (Date)
- periodEnd (Date)
- cycleEnd (Date)
- cycleEnd (Date, optional)
- isRegular (boolean)
- dailyLogs: ([DailyLog.id])

DailyLog
- id (ObjectId)
- cycle (Cycles.id)
- date (Date)
- flowIntensity (string, enum: light | medium | heavy)
- energyLevel (string, enum: low | medium | high)
- sleepQuality (string, enum: poor | average | good)
- sexualActivity (number)
- symptoms ([Symptom.id])

Symptom
- id (ObjectId)
- name (string)
<!-- - image (string) -->
- category (string, enum: physical | emotional)
- severity (string, enum: mild | moderate | severe)
<!-- - pregnancyChance (string, enum: low | medium | high) -->
- symptoms (string, enum: fatigue | headache | cramps | tender breasts | acne | backache | cravings | abdominal pain | dryness)
- mood (string, enum: calm | happy | mood swings | sad | anxious)
- energy (string, enum: low | medium | high)
- flow (string, enum: no discharge | creamy | watery)
- sleep (string, enum: poor | average | good)
- sexualActivity (string, enum: didn't have sex | had sex)
- sex drive (string, enum: low | medium | high)

Event
- id (ObjectId)
Expand All @@ -87,41 +83,14 @@ Event
- title (string)
- description (string)
- reminder (boolean)
- recurrence ({ type (string), interval (number)})
- recurrence (Object { type (string, enum: daily, weekly, monthly), interval (number)})

Tip
- id (ObjectId)
- id (ObjectId)
- phase (string, enum: menstruation | follicular | ovulation | luteal)
- category (string, enum: nutrition | exercise | self-care | music)
- description (string)

<!-- DailyInsight
- id (ObjectId)
- userId (reference to user.id)
- date (date)
- phase (string, enum: menstruation | follicular | ovulation | luteal)
- symptoms (array of references to Symptom.id)
- pregnancyChance (string, enum: low | medium | high)
- reminder (string)
- note (string)
Report
- id (ObjectId)
- userId (reference to user.id)
- cycleId (reference to cycle.id)
- cycleLength (number)
- menstruationLength (number)
- mostFrequentSymptoms (array of references to symptom.id)
- isRegular (boolean)
Statistics
- userId (reference to user.id)
- averageCycleLength (number)
- averageMenstruationLength (number)
- mostFrequentSymptom (reference to symptom.id)
- isRegularPercentage (number) -->


### Techs

- HTML/CSS/JS (...)
Expand Down

0 comments on commit f016fbf

Please sign in to comment.