from dataclasses import dataclass
from datetime import datetime
from typing import Optional

from src.ezgg_lan_manager.types.User import User


@dataclass(frozen=True)
class Ticket:
    ticket_id: int
    category: str
    purchase_date: datetime
    owner: Optional[User] = None
