"""标签相关 Schema。"""

from datetime import datetime

from pydantic import BaseModel, Field


class CreateTagRequest(BaseModel):
    name: str = Field(..., min_length=1, max_length=100)


class TagResponse(BaseModel):
    id: str
    name: str
    created_at: datetime


class ListTagsResponse(BaseModel):
    items: list[TagResponse]
    total: int = Field(default=0, ge=0)


class TagAssetsRequest(BaseModel):
    tag_ids: list[str] = Field(..., min_length=1, max_length=50)
