Initial commit - Migrated to Dev environment
This commit is contained in:
16
backend/app/schemas/auth.py
Executable file
16
backend/app/schemas/auth.py
Executable file
@@ -0,0 +1,16 @@
|
||||
from pydantic import BaseModel, EmailStr, Field
|
||||
from typing import Optional
|
||||
|
||||
class Token(BaseModel):
|
||||
access_token: str
|
||||
token_type: str
|
||||
|
||||
class TokenData(BaseModel):
|
||||
email: Optional[str] = None
|
||||
|
||||
class UserRegister(BaseModel):
|
||||
email: EmailStr
|
||||
password: str = Field(..., min_length=8)
|
||||
full_name: str
|
||||
region_code: str = "HU"
|
||||
device_id: str # Az eszköz egyedi azonosítója a védelemhez
|
||||
Reference in New Issue
Block a user