Merge branch 'feat/custom_schema_and_layout' of github.com:presenton/presenton into feat/custom_schema_and_layout

This commit is contained in:
shiva raj badu 2025-07-17 15:47:50 +05:45
commit 2b7814eb2e
2 changed files with 2 additions and 0 deletions

View file

@ -202,6 +202,7 @@ async def stream_presentation(presentation_id: str):
)
slide = SlideModel(
presentation=presentation_id,
layout_group=layout.name,
layout=slide_layout.id,
index=i,
content=slide_content,

View file

@ -6,6 +6,7 @@ from utils.randomizers import get_random_uuid
class SlideModel(SQLModel, table=True):
id: str = Field(primary_key=True, default_factory=get_random_uuid)
presentation: str
layout_group: str
layout: str
index: int
content: dict = Field(sa_column=Column(JSON))