mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2025-12-28 23:25:46 +01:00
17 lines
498 B
Python
17 lines
498 B
Python
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, on_delete='CASCADE')
|
|
step = CharField()
|
|
data = BinaryJSONField(null=True)
|
|
messages = BinaryJSONField(null=True)
|
|
app_data = BinaryJSONField()
|
|
completed = BooleanField(default=False)
|
|
completed_at = DateTimeField(null=True)
|