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.
gpt-pilot/pilot/database/models/command_runs.py

21 lines
724 B
Python

from peewee import AutoField, ForeignKeyField, TextField, CharField, IntegerField
from database.models.components.base_models import BaseModel
from database.models.app import App
class CommandRuns(BaseModel):
id = AutoField()
app = ForeignKeyField(App, on_delete='CASCADE')
command = TextField(null=True)
cli_response = TextField(null=True)
done_or_error_response = TextField(null=True)
exit_code = IntegerField(null=True)
previous_step = ForeignKeyField('self', null=True, column_name='previous_step')
high_level_step = CharField(null=True)
class Meta:
table_name = 'command_runs'
indexes = (
(('app', 'previous_step', 'high_level_step'), True),
)