character-studio / backend /app /scenes /scene_schema.py
github-actions[bot]
Automated Deploy: 49714823cd4f8e3e8f1382d391cfb3b9732cc60c
801f06c
Raw History Blame Contribute Delete
563 Bytes
from datetime import datetime
from pydantic import BaseModel, ConfigDict, Field
class SceneCreate(BaseModel):
name: str = Field(min_length=1, max_length=120)
image_asset_id: str
character_ids: list[str] = Field(min_length=2, max_length=2)
prompt: str = Field(
default="Two women in one scene, natural conversation and attentive listening.",
max_length=4000,
)
approved: bool = False
class SceneRead(SceneCreate):
model_config = ConfigDict(from_attributes=True)
id: str
created_at: datetime
version: int