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

from src.ezgg_lan_manager.types.User import User


@dataclass(frozen=True)
class News:
    news_id: Optional[int]
    title: str
    subtitle: str
    content: str
    author: User
    news_date: date
