You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
491 B
Python
16 lines
491 B
Python
# from peewee import
|
|
from database.config import DATABASE_TYPE
|
|
from database.models.components.progress_step import ProgressStep
|
|
from database.models.components.sqlite_middlewares import JSONField
|
|
from playhouse.postgres_ext import BinaryJSONField
|
|
|
|
|
|
class Architecture(ProgressStep):
|
|
if DATABASE_TYPE == 'postgres':
|
|
architecture = BinaryJSONField()
|
|
else:
|
|
architecture = JSONField() # Custom JSON field for SQLite
|
|
|
|
class Meta:
|
|
table_name = 'architecture'
|