@startuml "Backend Components"

package "Service" {
    component "API Service" as apiservice
}

package "Mapping" {
    interface "Mapper Interface" as mapperint
    component "Mapper Implementation" as mapperimp
}

package "DashAPI" {
    component "API Models" as apimodels
}

package "Database" {
    interface "Database Interface" as dbint
    component "Database Implementation" as dbimp
    component "Database Models" as dbmodels
}

apiservice --> apimodels
apiservice --> dbint
apiservice --> mapperint

dbimp .up.> dbint
dbimp --> dbmodels


mapperimp .up.> mapperint
mapperimp --> apimodels
mapperimp --> dbmodels

@enduml