"""
Token schemas for the sim-search API.

This module defines the Pydantic models for token-related operations.
"""

from typing import Optional

from pydantic import BaseModel


class Token(BaseModel):
    """Token schema."""
    
    access_token: str
    token_type: str


class TokenPayload(BaseModel):
    """Token payload schema."""
    
    sub: Optional[str] = None


class TokenData(BaseModel):
    """Token data schema."""
    
    username: Optional[str] = None
