Pydantic schemas for user profile CRUD operations.
# Source: https://github.com/ValueCell-ai/valuecell | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""API schemas for user profile operations."""
from datetime import datetime
from typing import List
from pydantic import BaseModel, Field
from ...db.models.user_profile import ProfileCategory
class UserProfileData(BaseModel):
"""User profile data schema."""
id: int = Field(..., description="Profile ID")
user_id: str = Field(..., description="User ID")
category: str = Field(..., description="Profile category")
content: str = Field(..., description="Profile content")
created_at: datetime = Field(..., description="Creation timestamp")
updated_at: datet
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key