recopytex/backend/api/model.py

17 lines
288 B
Python

from typing import Optional
from pydantic import BaseModel
class StudentModel(BaseModel):
name: str
tribe_name: str
id: Optional[str]
class TribeModel(BaseModel):
name: str
level: str
students: list[StudentModel] | None = []
assessments: list | None = []