OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
MongoConstants.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <iostream>
5
7{
8 std::string const ADMIN_DB = "admin";
9 std::string const SYSTEM_USERS_COLLECTION = "system.users";
10
11 std::string const PROJECT_TEMPLATES_DB = "ProjectTemplates"; // Accessible by everyone
12 std::string const PROJECT_TEMPLATES_ROLE = "ProjectTemplates_role";
13
14 std::string const PROJECTS_LARGE_DATA_DB = "ProjectsLargeData"; // Accessible by everyone
15 std::string const PROJECTS_LARGE_DATA_ROLE = "ProjectsLargeData_role";
16
17 std::string const SYSTEM_DB = "System"; // Accessible by everyone
18 std::string const SYSTEM_DB_ROLE = "System_db_role";
19
20 std::string const SETTINGS_DB = "UserSettings"; // Accessible by everyone, keeps data one collection per user
21 std::string const SETTINGS_DB_ROLE = "UserSettings_db_role";
22
23 std::string const USER_DB = "User"; // Accessible by admin only
24 std::string const USER_CATALOG_COLLECTION = "Catalog";
25 std::string const USER_CATALOG_ROLE = "user_catalog_collection_role";
26 std::string const USER_DB_LIST_CATALOG_ROLE = "user_db_list_collections_role";
27
28 std::string const PROJECTS_DB = "Projects";
29 std::string const PROJECT_CATALOG_COLLECTION = "Catalog";
30 std::string const PROJECT_CATALOG_ROLE = "project_catalog_collection_role";
31 std::string const PROJECT_DB_LIST_COLLECTIONS_ROLE = "project_db_list_collections_role";
32
33 std::string const GROUPS_COLLECTION = "Groups";
34 std::string const GROUP_ROLE = "groups_collection_role";
35
36 std::string const SESSIONS_COLLECTION = "Sessions";
37 std::string const SESSIONS_ROLE = "sessions_collection_role";
38
39}
Definition MongoConstants.h:7
std::string const SYSTEM_DB
Definition MongoConstants.h:17
std::string const PROJECT_TEMPLATES_ROLE
Definition MongoConstants.h:12
std::string const PROJECTS_DB
Definition MongoConstants.h:28
std::string const PROJECTS_LARGE_DATA_ROLE
Definition MongoConstants.h:15
std::string const SYSTEM_USERS_COLLECTION
Definition MongoConstants.h:9
std::string const USER_DB_LIST_CATALOG_ROLE
Definition MongoConstants.h:26
std::string const ADMIN_DB
Definition MongoConstants.h:8
std::string const USER_DB
Definition MongoConstants.h:23
std::string const USER_CATALOG_ROLE
Definition MongoConstants.h:25
std::string const PROJECT_CATALOG_ROLE
Definition MongoConstants.h:30
std::string const PROJECTS_LARGE_DATA_DB
Definition MongoConstants.h:14
std::string const SESSIONS_COLLECTION
Definition MongoConstants.h:36
std::string const GROUPS_COLLECTION
Definition MongoConstants.h:33
std::string const USER_CATALOG_COLLECTION
Definition MongoConstants.h:24
std::string const PROJECT_DB_LIST_COLLECTIONS_ROLE
Definition MongoConstants.h:31
std::string const SESSIONS_ROLE
Definition MongoConstants.h:37
std::string const PROJECT_CATALOG_COLLECTION
Definition MongoConstants.h:29
std::string const SETTINGS_DB
Definition MongoConstants.h:20
std::string const PROJECT_TEMPLATES_DB
Definition MongoConstants.h:11
std::string const SETTINGS_DB_ROLE
Definition MongoConstants.h:21
std::string const GROUP_ROLE
Definition MongoConstants.h:34
std::string const SYSTEM_DB_ROLE
Definition MongoConstants.h:18