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-10-26 13:40:30 +02:00
|
|
|
MIGRATIONS: "migrations",
|
2022-02-10 20:06:49 +01:00
|
|
|
DEV_INFO: "devinfo",
|
2021-10-07 16:49:26 +02:00
|
|
|
}
|
|
|
|
|
2021-08-05 10:59:08 +02:00
|
|
|
exports.StaticDatabases = {
|
|
|
|
GLOBAL: {
|
|
|
|
name: "global-db",
|
|
|
|
docs: {
|
|
|
|
apiKeys: "apikeys",
|
2022-01-11 18:49:42 +01:00
|
|
|
usageQuota: "usage_quota",
|
2022-03-09 22:16:22 +01:00
|
|
|
licenseInfo: "license_info",
|
2021-08-05 10:59:08 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
// contains information about tenancy and so on
|
|
|
|
PLATFORM_INFO: {
|
|
|
|
name: "global-info",
|
|
|
|
docs: {
|
|
|
|
tenants: "tenants",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
2022-01-28 01:05:39 +01:00
|
|
|
|
|
|
|
exports.APP_PREFIX = exports.DocumentTypes.APP + exports.SEPARATOR
|
|
|
|
exports.APP_DEV = exports.APP_DEV_PREFIX =
|
|
|
|
exports.DocumentTypes.APP_DEV + exports.SEPARATOR
|