recopytex/backend/api/model.py

17 lines
288 B
Python
Raw Permalink Normal View History

2022-12-27 10:57:50 +00:00
from typing import Optional
2022-12-21 05:53:59 +00:00
from pydantic import BaseModel
2022-12-27 10:57:50 +00:00
class StudentModel(BaseModel):
name: str
tribe_name: str
id: Optional[str]
2022-12-21 05:53:59 +00:00
class TribeModel(BaseModel):
name: str
level: str
2022-12-27 10:57:50 +00:00
students: list[StudentModel] | None = []
assessments: list | None = []