mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-01-20 09:11:01 +01:00
Updated db models to store JSON lists instead of text
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
from peewee import *
|
||||
|
||||
from database.models.components.progress_step import ProgressStep
|
||||
from playhouse.postgres_ext import BinaryJSONField
|
||||
|
||||
|
||||
class Architecture(ProgressStep):
|
||||
architecture = TextField()
|
||||
architecture = BinaryJSONField()
|
||||
class Meta:
|
||||
db_table = 'architecture'
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
from peewee import *
|
||||
|
||||
from database.models.components.progress_step import ProgressStep
|
||||
from playhouse.postgres_ext import BinaryJSONField
|
||||
|
||||
|
||||
class DevelopmentPlanning(ProgressStep):
|
||||
architecture = TextField()
|
||||
development_plan = BinaryJSONField()
|
||||
|
||||
class Meta:
|
||||
db_table = 'development_planning'
|
||||
|
||||
@@ -10,3 +10,6 @@ class DevelopmentSteps(BaseModel):
|
||||
app = ForeignKeyField(App, primary_key=True)
|
||||
hash_id = CharField(unique=True, null=False)
|
||||
messages = BinaryJSONField(null=True)
|
||||
|
||||
class Meta:
|
||||
db_table = 'development_steps'
|
||||
@@ -1,9 +1,10 @@
|
||||
from peewee import *
|
||||
|
||||
from database.models.components.progress_step import ProgressStep
|
||||
from playhouse.postgres_ext import BinaryJSONField
|
||||
|
||||
|
||||
class UserStories(ProgressStep):
|
||||
user_stories = TextField()
|
||||
user_stories = BinaryJSONField()
|
||||
class Meta:
|
||||
db_table = 'user_stories'
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
from peewee import *
|
||||
|
||||
from database.models.components.progress_step import ProgressStep
|
||||
from playhouse.postgres_ext import BinaryJSONField
|
||||
|
||||
|
||||
class UserTasks(ProgressStep):
|
||||
user_tasks = TextField()
|
||||
user_tasks = BinaryJSONField()
|
||||
class Meta:
|
||||
db_table = 'user_tasks'
|
||||
|
||||
Reference in New Issue
Block a user