from pydantic import BaseModel, Field


class CreateProjectRequest(BaseModel):
    name: str = Field(..., min_length=1, max_length=100)
    description: str = Field(default="", max_length=500)


class ProjectResponse(BaseModel):
    id: str
    owner_user_id: str
    name: str
    description: str
    shared_users: list[str] = []


class ListProjectsResponse(BaseModel):
    items: list[ProjectResponse]
