mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-01-01 17:09:59 +01:00
20 lines
561 B
Python
20 lines
561 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 DevelopmentSteps(BaseModel):
|
|
id = AutoField() # This will serve as the primary key
|
|
app = ForeignKeyField(App)
|
|
hash_id = CharField(unique=True, null=False)
|
|
messages = BinaryJSONField(null=True)
|
|
llm_response = BinaryJSONField(null=False)
|
|
|
|
class Meta:
|
|
db_table = 'development_steps'
|
|
indexes = (
|
|
(('app', 'hash_id'), True),
|
|
) |