feat: initialize aivideo project
This commit is contained in:
13
backend/app/modules/auth/schema.py
Normal file
13
backend/app/modules/auth/schema.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from pydantic import BaseModel, EmailStr, Field
|
||||
|
||||
|
||||
class RegisterRequest(BaseModel):
|
||||
account: EmailStr
|
||||
password: str = Field(min_length=8, max_length=64)
|
||||
invite_code: str | None = None
|
||||
|
||||
|
||||
class LoginRequest(BaseModel):
|
||||
account: str
|
||||
password: str = Field(min_length=8, max_length=64)
|
||||
|
||||
Reference in New Issue
Block a user