2021-08-05 10:59:08 +02:00
|
|
|
exports.SEPARATOR = "_"
|
|
|
|
|
2021-10-07 16:49:26 +02:00
|
|
|
const PRE_APP = "app"
|
|
|
|
const PRE_DEV = "dev"
|
|
|
|
|
|
|
|
exports.DocumentTypes = {
|
|
|
|
USER: "us",
|
|
|
|
WORKSPACE: "workspace",
|
|
|
|
CONFIG: "config",
|
|
|
|
TEMPLATE: "template",
|
|
|
|
APP: PRE_APP,
|
|
|
|
DEV: PRE_DEV,
|
|
|
|
APP_DEV: `${PRE_APP}${exports.SEPARATOR}${PRE_DEV}`,
|
|
|
|
APP_METADATA: `${PRE_APP}${exports.SEPARATOR}metadata`,
|
|
|
|
ROLE: "role",
|
|
|
|
}
|
|
|
|
|
2021-08-05 10:59:08 +02:00
|
|
|
exports.StaticDatabases = {
|
|
|
|
GLOBAL: {
|
|
|
|
name: "global-db",
|
|
|
|
docs: {
|
|
|
|
apiKeys: "apikeys",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// contains information about tenancy and so on
|
|
|
|
PLATFORM_INFO: {
|
|
|
|
name: "global-info",
|
|
|
|
docs: {
|
|
|
|
tenants: "tenants",
|
2021-09-27 18:35:22 +02:00
|
|
|
usageQuota: "usage_quota",
|
2021-08-05 10:59:08 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|