mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
fix pg tests
This commit is contained in:
parent
06ab13ec8c
commit
03a98efc8f
1 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
from enum import unique
|
||||
|
||||
import sqlalchemy as sa
|
||||
import sqlalchemy.orm as orm
|
||||
from mealie.db.models.model_base import BaseMixins, SqlAlchemyBase
|
||||
|
@ -7,7 +9,7 @@ from sqlalchemy.sql.sqltypes import Integer
|
|||
class SiteThemeModel(SqlAlchemyBase, BaseMixins):
|
||||
__tablename__ = "site_theme"
|
||||
id = sa.Column(Integer, primary_key=True, unique=True)
|
||||
name = sa.Column(sa.String, nullable=False)
|
||||
name = sa.Column(sa.String, nullable=False, unique=True)
|
||||
colors = orm.relationship("ThemeColorsModel", uselist=False, cascade="all, delete")
|
||||
|
||||
def __init__(self, name: str, colors: dict, *arg, **kwargs) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue