@startuml
''https://plantuml.com/class-diagram
'
'abstract class AbstractList
'abstract AbstractCollection
'interface List
'interface Collection
'
'List <|-- AbstractList
'Collection <|-- AbstractCollection
'
'Collection <|- List
'AbstractCollection <|- AbstractList
'AbstractList <|-- ArrayList
'
'class ArrayList {
'Object[] elementData
'size()
'}
'
'enum TimeUnit {
'DAYS
'HOURS
'MINUTES
'}
enum SleepPosition {
BACK
SIDE
STOMACH
}

enum BottleContents {
BREAST_MILK
FORMULA
MIX
}

enum DiaperContents {
BM
WET
DRY
BLOWOUT
}

enum SleepMethod {
BY_SELF
ROCKING
PATTING
}

class Diaper {
id : string
contents : string enums
appliedCream : bool
time : string
rash : bool
}

class Nap {
id : string
start : string
end : string
bySelf : SleepMethod
position : SleepPosition
}

class Bottle {
id : string
contents : BottleContents
totalContents : int
totalDrank : int
startTime : string
endTime : string
}

class ChildModel {
childId : String
date : string
name : String
diaperList : List<Diaper>
napList: List<Nap>
bottleList : List<Bottle>
}


Nap --|> SleepPosition
Nap --|> SleepMethod
Bottle --|> BottleContents
Diaper --|> DiaperContents
ChildModel --{"1..*" Diaper
ChildModel --{"1..*" Nap
ChildModel --{"1..*" Bottle

class ChildNotFoundException



@enduml