feat: AI Worker 平台 MVP v1.0.0 - 多租户/项目管理/AI Worker/任务编排/HITL审核/成本治理

This commit is contained in:
2026-08-12 13:30:56 +08:00
parent 598b46bc2e
commit d1a9e32c88
+27
View File
@@ -0,0 +1,27 @@
"""Tenant schemas."""
from pydantic import BaseModel, Field
from typing import Optional
from datetime import datetime
class TenantCreate(BaseModel):
name: str = Field(..., min_length=1, max_length=200)
slug: str = Field(..., min_length=1, max_length=100)
description: str = ""
class TenantUpdate(BaseModel):
name: Optional[str] = None
description: Optional[str] = None
is_active: Optional[bool] = None
class TenantResponse(BaseModel):
id: int
name: str
slug: str
description: str
is_active: bool
created_at: datetime
model_config = {"from_attributes": True}