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/EmbededDocuments.py

18 lines
400 B

from datetime import datetime
4 years ago
from mongoengine import *
class ApiKey(EmbeddedDocument):
secret = StringField()
key = StringField()
rights = ListField(StringField())
create_date = DateTimeField(default=datetime.utcnow)
creator = ReferenceField("User")
4 years ago
class Descriptions(EmbeddedDocument):
text = StringField()
user = ReferenceField("User")
4 years ago
date = DateTimeField()