diff options
author | Milo Casagrande <milo.casagrande@linaro.org> | 2014-10-15 20:59:25 +0200 |
---|---|---|
committer | Milo Casagrande <milo.casagrande@linaro.org> | 2014-10-15 20:59:25 +0200 |
commit | f491673bd40ec7965c2883665e9a4eef12500ed3 (patch) | |
tree | f609cdaaad8217879d2fa7f708bc2517371d0fea | |
parent | 4115a7c05234e278cf5767db3b570e2cf6e016df (diff) |
models: Add new fields and the collection names.
Change-Id: I92008deea0d82b3994a90112a8b5b4f332afba1a
-rw-r--r-- | app/models/__init__.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/models/__init__.py b/app/models/__init__.py index 8ba1b9a..290092c 100644 --- a/app/models/__init__.py +++ b/app/models/__init__.py @@ -24,6 +24,7 @@ BOOT_LOG_HTML_KEY = 'boot_log_html' BOOT_LOG_KEY = 'boot_log' BUILD_RESULT_KEY = 'build_result' COMPILER_VERSION_KEY = 'compiler_version' +COUNT_KEY = "count" CREATED_KEY = 'created_on' CROSS_COMPILE_KEY = 'cross_compile' DATE_RANGE_KEY = 'date_range' @@ -95,3 +96,11 @@ COLLECTION_KEY = "collection" DOCUMENT_ID_KEY = "document_id" QUERY_KEY = "query" OP_ID_KEY = "operation_id" + +# Collection names. +BOOT_COLLECTION = 'boot' +COUNT_COLLECTION = "count" +DEFCONFIG_COLLECTION = 'defconfig' +JOB_COLLECTION = 'job' +SUBSCRIPTION_COLLECTION = 'subscription' +TOKEN_COLLECTION = 'api-token' |