Files
MultiChatOverlay/schemas.py

19 lines
410 B
Python

from pydantic import BaseModel
class SettingsUpdate(BaseModel):
overlay_theme: str
class CustomThemeBase(BaseModel):
name: str
css_content: str
class CustomThemeCreate(CustomThemeBase):
pass
class CustomTheme(CustomThemeBase):
id: int
owner_id: int
class Config:
# This allows the Pydantic model to be created from a SQLAlchemy ORM object
from_attributes = True