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

package "Mapping" {
    interface "Mapper Interface" as mapperint
    component "Mapper" as mapper
}

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

package "Database" {
    interface "Database Interface" as dbint
    component "Database Implementation" as dbimp
    component "Database Model" as dbmodel
}

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

dbimp .up.> dbint
dbimp --> dbmodel


mapper .up.> mapperint
mapper --> apimodels
mapper --> dbmodel



@enduml