alabuga/backend/app/schemas/artifact.py
2025-09-24 20:18:46 +02:00

20 lines
384 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""Схемы артефактов."""
from __future__ import annotations
from pydantic import BaseModel
from app.models.artifact import ArtifactRarity
class ArtifactRead(BaseModel):
"""Краткая информация об артефакте."""
id: int
name: str
description: str
rarity: ArtifactRarity
class Config:
from_attributes = True