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.
21 lines
653 B
Python
21 lines
653 B
Python
|
3 years ago
|
from peewee import *
|
||
|
|
|
||
|
|
from playhouse.postgres_ext import BinaryJSONField
|
||
|
|
|
||
|
|
from database.models.components.base_models import BaseModel
|
||
|
|
from database.models.app import App
|
||
|
|
|
||
|
|
|
||
|
|
class DevelopmentSteps(BaseModel):
|
||
|
3 years ago
|
id = AutoField() # This will serve as the primary key
|
||
|
3 years ago
|
app = ForeignKeyField(App, on_delete='CASCADE')
|
||
|
3 years ago
|
hash_id = CharField(null=False)
|
||
|
3 years ago
|
messages = BinaryJSONField(null=True)
|
||
|
3 years ago
|
llm_response = BinaryJSONField(null=False)
|
||
|
3 years ago
|
previous_step = ForeignKeyField('self', null=True, column_name='previous_step')
|
||
|
3 years ago
|
|
||
|
|
class Meta:
|
||
|
3 years ago
|
db_table = 'development_steps'
|
||
|
|
indexes = (
|
||
|
|
(('app', 'hash_id'), True),
|
||
|
|
)
|