feat(fastapi): adds layout group in slide model

This commit is contained in:
sauravniraula 2025-07-17 15:46:08 +05:45
parent 0b9c16a311
commit 401d7c669b
No known key found for this signature in database
GPG key ID: 60FCC1B5A5E83326
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))