Implemented saving of Files with descriptions in the database

This commit is contained in:
Zvonimir Sabljic
2023-08-08 15:11:50 +02:00
parent 9e58b24bc8
commit 4ecf2229d1
5 changed files with 25 additions and 9 deletions

View File

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