mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-01-19 16:54:50 +01:00
Added command runs model
This commit is contained in:
18
euclid/database/models/command_runs.py
Normal file
18
euclid/database/models/command_runs.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from peewee import *
|
||||
|
||||
from database.models.components.base_models import BaseModel
|
||||
from database.models.app import App
|
||||
|
||||
|
||||
class CommandRuns(BaseModel):
|
||||
id = AutoField()
|
||||
app = ForeignKeyField(App)
|
||||
hash_id = CharField(unique=True, null=False)
|
||||
command = TextField(null=True)
|
||||
cli_response = TextField(null=True)
|
||||
|
||||
class Meta:
|
||||
db_table = 'command_runs'
|
||||
indexes = (
|
||||
(('app', 'hash_id'), True),
|
||||
)
|
||||
Reference in New Issue
Block a user