16 lines
337 B
Python
16 lines
337 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class RosterOut(BaseModel):
|
|
id: int
|
|
student_id: str
|
|
name: str
|
|
status: str # "unregistered" | "registered"
|
|
user_id: int | None
|
|
|
|
model_config = {"from_attributes": True}
|
|
|
|
|
|
class RosterImportRequest(BaseModel):
|
|
entries: list[dict] # [{"student_id": "...", "name": "..."}, ...]
|