You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Adunatio/models/File.py

18 lines
403 B

4 years ago
from mongoengine import *
from models.Group import Group
class Directory(Document):
path = StringField()
can_see_user_group = ReferenceField(Group)
is_system = BooleanField(default=False)
deleted = BooleanField(default=False)
4 years ago
class File(Document):
path = ReferenceField(Directory)
file = FileField()
description = StringField()
deleted = BooleanField(default=False)