"""Mirrors upstream src/2014/schemas/5e-SRD-Subraces.ts."""

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


class AbilityBonus(SRDModel):
    ability_score: APIReference
    bonus: int


class Subrace(SRDModel):
    index: str
    name: str
    race: APIReference
    desc: str
    ability_bonuses: list[AbilityBonus]
    racial_traits: list[APIReference] | None = None
    url: str
