"""Mirrors upstream src/2024/schemas/5e-SRD-Backgrounds.ts."""

from dnd5e_db.models.base import SRDModel
from dnd5e_db.models.common import APIReference, Choice


class BackgroundFeatReference(SRDModel):
    index: str
    name: str
    url: str
    note: str | None = None


class Background(SRDModel):
    index: str
    name: str
    ability_scores: list[APIReference]
    feat: BackgroundFeatReference
    proficiencies: list[APIReference]
    proficiency_choices: list[Choice] | None = None
    equipment_options: list[Choice] | None = None
    url: str
