mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-02-23 15:49:50 +01:00
Changed development_steps, command_runs, and user_inputs models - we don't need to hash any data - we can just use it as is
This commit is contained in:
@@ -7,7 +7,6 @@ from database.models.app import App
|
||||
class UserInputs(BaseModel):
|
||||
id = AutoField()
|
||||
app = ForeignKeyField(App, on_delete='CASCADE')
|
||||
hash_id = CharField(null=False)
|
||||
query = TextField(null=True)
|
||||
user_input = TextField(null=True)
|
||||
previous_step = ForeignKeyField('self', null=True, column_name='previous_step')
|
||||
@@ -16,5 +15,5 @@ class UserInputs(BaseModel):
|
||||
class Meta:
|
||||
db_table = 'user_inputs'
|
||||
indexes = (
|
||||
(('app', 'hash_id'), True),
|
||||
(('app', 'previous_step', 'high_level_step'), True),
|
||||
)
|
||||
Reference in New Issue
Block a user