
```mermaid
erDiagram
    COMPANY ||--o{ LOCATION : has
    LOCATION ||--o| AGGREGATE_RATING : has
    AGGREGATE_RATING ||--|| AGGREGATE_RATING_DETAILS : has
    AGGREGATE_RATING_DETAILS ||--|{ STAR_RATING : has
    STAR_RATING ||--o| DISTRIBUTION : has
    AGGREGATE_RATING_DETAILS ||--|| PRICING : has

    AGGREGATE_RATING_DETAILS {
        string type
    }

    STAR_RATING {
        string category
        int bestRating
        int worstRating
        number ratingValue
        int ratingCount
        int reviewCount
    }

    DISTRIBUTION {
        string key
        int value
    }

    PRICING {
        int indicator
    }
```