alabuga/backend/app/schemas/journal.py
danilgryaznev e050bd46ef 1 vers
2025-09-21 19:30:55 +02:00

27 lines
527 B
Python

"""Схемы бортового журнала."""
from __future__ import annotations
from datetime import datetime
from typing import Optional
from pydantic import BaseModel
from app.models.journal import JournalEventType
class JournalEntryRead(BaseModel):
"""Запись журнала."""
id: int
event_type: JournalEventType
title: str
description: str
payload: Optional[dict]
xp_delta: int
mana_delta: int
created_at: datetime
class Config:
from_attributes = True