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

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


class SubspeciesTrait(SRDModel):
    index: str
    name: str
    url: str
    level: int


class Subspecies(SRDModel):
    index: str
    name: str
    url: str
    species: APIReference
    traits: list[SubspeciesTrait]
    damage_type: APIReference | None = None
