You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
469 B
Python
19 lines
469 B
Python
from peewee import AutoField, CharField, TextField, ForeignKeyField
|
|
|
|
from database.models.components.base_models import BaseModel
|
|
from database.models.app import App
|
|
|
|
|
|
class File(BaseModel):
|
|
id = AutoField()
|
|
app = ForeignKeyField(App, on_delete='CASCADE')
|
|
name = CharField()
|
|
path = CharField()
|
|
full_path = CharField()
|
|
description = TextField(null=True)
|
|
|
|
class Meta:
|
|
indexes = (
|
|
(('app', 'name', 'path'), True),
|
|
)
|