mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-01-15 07:00:03 +01:00
refactor DB
This commit is contained in:
16
euclid/database/models/components/progress_step.py
Normal file
16
euclid/database/models/components/progress_step.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from peewee import *
|
||||
|
||||
from playhouse.postgres_ext import BinaryJSONField
|
||||
|
||||
from database.models.components.base_models import BaseModel
|
||||
from database.models.app import App
|
||||
|
||||
|
||||
class ProgressStep(BaseModel):
|
||||
app = ForeignKeyField(App, primary_key=True)
|
||||
step = CharField()
|
||||
data = BinaryJSONField(null=True)
|
||||
messages = BinaryJSONField(null=True)
|
||||
app_data = BinaryJSONField()
|
||||
completed = BooleanField(default=False)
|
||||
completed_at = DateTimeField(null=True)
|
||||
Reference in New Issue
Block a user