"""Play history request/response schemas."""

import datetime as dt
import uuid

from pydantic import BaseModel


class HistoryIn(BaseModel):
    track_id: uuid.UUID
    played_at: dt.datetime
    play_duration_seconds: int | None = None
    completed: bool = False


class HistoryOut(BaseModel):
    id: uuid.UUID
    track_id: uuid.UUID
    played_at: dt.datetime
    play_duration_seconds: int | None
    completed: bool
