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

27 lines
480 B
Python

"""Схемы веток миссий."""
from __future__ import annotations
from pydantic import BaseModel
class BranchMissionRead(BaseModel):
"""Миссия внутри ветки."""
mission_id: int
mission_title: str
order: int
class BranchRead(BaseModel):
"""Описание ветки."""
id: int
title: str
description: str
category: str
missions: list[BranchMissionRead]
class Config:
from_attributes = True