Files
piaps-student-performance/backend/app/schemas/auth_schemas.py

11 lines
228 B
Python

from pydantic import BaseModel, EmailStr, Field
class AuthLoginSchema(BaseModel):
email: EmailStr = Field(examples=["ns.potapov@yandex.ru"])
password: str
class AuthOTPLoginSchema(AuthLoginSchema):
otp_code: str