Merge branch 'feat/custom_schema_and_layout' of github.com:presenton/presenton into feat/custom_schema_and_layout
This commit is contained in:
commit
2b7814eb2e
2 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue