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:
Zvonimir Sabljic
2023-09-15 17:51:24 +02:00
parent 0e739f350f
commit 0dd6b6d996
7 changed files with 50 additions and 59 deletions

View File

@@ -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),
)