Added command runs model

This commit is contained in:
Zvonimir Sabljic
2023-08-04 10:18:50 +02:00
parent d2b491757b
commit f70fc83c08

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