Island: Add collection name properties to config and mode models
Collection name properties are useful for queries related to these specific collections
This commit is contained in:
parent
9f7f3c2498
commit
fb2f85ba24
|
@ -2,6 +2,9 @@ from mongoengine import BooleanField, EmbeddedDocument
|
||||||
|
|
||||||
|
|
||||||
class Config(EmbeddedDocument):
|
class Config(EmbeddedDocument):
|
||||||
|
|
||||||
|
COLLECTION_NAME = "config"
|
||||||
|
|
||||||
"""
|
"""
|
||||||
No need to define this schema here. It will change often and is already is defined in
|
No need to define this schema here. It will change often and is already is defined in
|
||||||
monkey_island.cc.services.config_schema.
|
monkey_island.cc.services.config_schema.
|
||||||
|
|
|
@ -2,4 +2,6 @@ from mongoengine import Document, StringField
|
||||||
|
|
||||||
|
|
||||||
class IslandMode(Document):
|
class IslandMode(Document):
|
||||||
|
COLLECTION_NAME = "island_mode"
|
||||||
|
|
||||||
mode = StringField()
|
mode = StringField()
|
||||||
|
|
Loading…
Reference in New Issue