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.
15 lines
319 B
15 lines
319 B
from mongoengine import *
|
|
|
|
from models.Group import Group
|
|
|
|
|
|
class Directory(Document):
|
|
path = StringField()
|
|
can_see_user_group = ReferenceField(Group)
|
|
is_system = BooleanField(default=False)
|
|
|
|
|
|
class File(Document):
|
|
path = ReferenceField(Directory)
|
|
file = FileField()
|
|
description = StringField()
|
|
|