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

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


class FeatPrerequisites(SRDModel):
    minimum_level: int | None = None
    feature_named: str | None = None


class Feat(SRDModel):
    index: str
    name: str
    description: str
    type: str
    repeatable: str | None = None
    prerequisites: FeatPrerequisites | None = None
    prerequisite_options: Choice | None = None
    url: str
