mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-02-23 15:49:50 +01:00
Implemented saving of Files with descriptions in the database
This commit is contained in:
@@ -7,9 +7,10 @@ from database.models.app import App
|
||||
class File(BaseModel):
|
||||
app = ForeignKeyField(App)
|
||||
name = CharField()
|
||||
path = CharField()
|
||||
description = TextField()
|
||||
|
||||
class Meta:
|
||||
indexes = (
|
||||
(('app', 'name'), True),
|
||||
(('app', 'name', 'path'), True),
|
||||
)
|
||||
Reference in New Issue
Block a user