character-studio / backend /app /scenes /scene_model.py
github-actions[bot]
Automated Deploy: 49714823cd4f8e3e8f1382d391cfb3b9732cc60c
801f06c
Raw History Blame Contribute Delete
485 Bytes
from sqlalchemy import JSON, String, Boolean
from sqlalchemy.orm import Mapped, mapped_column
from app.shared.base_model import Record
class Scene(Record):
__tablename__ = "scenes"
name: Mapped[str] = mapped_column(String(120))
image_asset_id: Mapped[str] = mapped_column(String(36))
character_ids: Mapped[list] = mapped_column(JSON)
prompt: Mapped[str] = mapped_column(String(4000), default="")
approved: Mapped[bool] = mapped_column(Boolean, default=False)