---
# System prepended metadata

title: Data Model for FacetComparisonText

---

# Data Model for FacetComparisonText 

## Inputs

For each facet, we merge a person who is being compared to, their **rating** and their **score**.

## How

* For a single user comparing, we only care about their view. That means we only need to load the template for their results
* A comparisonRating is built from two users FacetResult.rating


## Model

```graphql=

model FacetComparisonText {
    id: ID!
    description: String
    facet: String # must exactly match wherever we use facets
    inviteeRating: Rating
    userRating: Rating
    description: String
    superpower: String
    vulnerability: String
    trait: Trait
}

# One day we may switch to an enum model for the facets.
enum Facet {
    FANTASY
    AESTHETICS
    ...
    DEPRESSION
}

enum Rating {
    HIGH
    NEUTRAL
    LOW
}

```

