erDiagram
CUSTOMER ||--o{ ORDER : places
ORDER ||--|{ LINE-ITEM : contains
ORDER }|..|{ DELIVERY-ADDRESS : uses
DELIVERY-ADDRESS }|--|| CUSTOMER : has
CUSTOMER ||--o{ ORDER : places
CUSTOMER {
string name
string region
string custNumber
string sector
}
ORDER ||--|{ LINE-ITEM : contains
ORDER {
int orderNumber
string deliveryAddress
}
LINE-ITEM {
string productCode
int quantity
float pricePerUnit
}
DELIVERY-ADDRESS {
int customerId
string addressLine1
string addressLine2
string city
string county
string state
string region
string country
string postalCode
}