@startuml

!define DARKBLUE
!includeurl https://raw.githubusercontent.com/Drakemor/RedDress-PlantUML/master/style.puml

entity Customer {
    * int id
    * string name
    string apiKey
    string secret
}

entity User {
    * int id
    * Customer owner
    * string firstname
    * string lastname
}

User ||--o{ Customer

entity Product {
    * int id
    * string name
    * string description
    ProductPhoto[] photos
    Specification[] specs
}

entity ProductPhoto {
    * int id
    * string filename
    * Product product
}

entity Specification {
    * int id
    * SpecCategory category
    * string value
}

entity SpecCategory {
    * int id
    * string label
}

Product }o--|| ProductPhoto
Product }o--|| Specification
Specification ||--o{ SpecCategory

@enduml