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.
17 lines
400 B
17 lines
400 B
from datetime import datetime
|
|
|
|
from mongoengine import *
|
|
|
|
|
|
class ApiKey(EmbeddedDocument):
|
|
secret = StringField()
|
|
key = StringField()
|
|
rights = ListField(StringField())
|
|
create_date = DateTimeField(default=datetime.utcnow)
|
|
creator = ReferenceField("User")
|
|
|
|
|
|
class Descriptions(EmbeddedDocument):
|
|
text = StringField()
|
|
user = ReferenceField("User")
|
|
date = DateTimeField()
|
|
|