"""Play history domain entity — append-only scrobble log entry."""

import datetime as dt
import uuid
from dataclasses import dataclass


@dataclass(frozen=True, slots=True)
class PlayHistoryEntry:
    id: uuid.UUID
    user_id: uuid.UUID
    track_id: uuid.UUID
    played_at: dt.datetime
    play_duration_seconds: int | None
    completed: bool
