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:
vakarisz 2022-04-21 17:36:41 +03:00
parent 9f7f3c2498
commit fb2f85ba24
2 changed files with 5 additions and 0 deletions

View File

@ -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.

View File

@ -2,4 +2,6 @@ from mongoengine import Document, StringField
class IslandMode(Document): class IslandMode(Document):
COLLECTION_NAME = "island_mode"
mode = StringField() mode = StringField()