feat: AI Worker 平台 MVP v1.0.0 - 多租户/项目管理/AI Worker/任务编排/HITL审核/成本治理
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
"""Authentication schemas."""
|
||||||
|
from pydantic import BaseModel, EmailStr, Field
|
||||||
|
|
||||||
|
|
||||||
|
class LoginRequest(BaseModel):
|
||||||
|
email: EmailStr
|
||||||
|
password: str
|
||||||
|
|
||||||
|
|
||||||
|
class RegisterRequest(BaseModel):
|
||||||
|
email: EmailStr
|
||||||
|
username: str = Field(..., min_length=2, max_length=100)
|
||||||
|
password: str = Field(..., min_length=6)
|
||||||
|
role: str = "worker"
|
||||||
|
tenant_slug: str = "default" # for first user in a new tenant
|
||||||
|
tenant_name: str = "" # if creating a new tenant
|
||||||
|
invite_code: str = "" # for joining existing tenant (MVP: not enforced)
|
||||||
Reference in New Issue
Block a user