teama / models.py
FabioSantos's picture
Update models.py
fc5dcc3 verified
raw
history blame contribute delete
768 Bytes
from pydantic import BaseModel
from typing import Optional
class UserCreate(BaseModel):
name: str
email: str
password: str
role: str
class UserLogin(BaseModel):
email: str
password: str
class SessionCreate(BaseModel):
user_id: int
created_by: int
date: str
activities: str
progress: str
challenges: str
observations: str
performance_score: int
fails_score: int
task_completion: int
behavior_rating: int
class ABADetails(BaseModel):
session_id: int
behavior: str
frequency: int
reinforcer: str
technique: str
class KidDetails(BaseModel):
user_id: int
nickname: str
age: int
suport_level: int
class TherapistKid(BaseModel):
user_id: int
nickname: str