Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Database Information


Database NameDatabase TypeCollection Name
%tenant_code%_multitenantMongoDBproducts


Record Explanation



Field NameTypeMandatoryUniqueIndexedDescription

_idMongo IDYESYESYESMongo Record ID

codeStringYESYESYESProduct Code

nameStringYESNONOProduct Name

descriptionStringNONONOProduct Description

scopeObjectNONONOProduct ACL and permission


Field NameTypeMandatoryUniqueIndexedDescription
aclObjectNONONO


packagesObjectNONONO

Packages in product



Field NameTypeMandatoryUniqueIndexedDescription
%packageName%


ObjectNONONO

Field NameTypeMandatoryUniqueIndexedDescription
codeStringNONONOPackage Code
nameStringNONONO

Package Name

DescriptionStringNONONOPackage Description
aclObjectNONONO


 Sample


The below Product has two packages. package 1 and PACK 2

Record Sample
{
	_id: ObjectId("5d65150fb151143ec5f41d2d"),
	code: "OTHER",
	name: "Another One",
	description: "Another Product to test",
	scope: {
		acl: {
			dev: {
				urac: {
					"2": {
						access: false
					}
				}
			}
		}
	},
	packages: [
		{
			code: "OTHER_PACK1",
			name: "package 1",
			description: "package 1",
			acl: {
				dev: {
					urac: [
						{
							version: "2"
						}
					]
				}
			},
			_TTL: NumberInt(21600000)
		},
		{
			code: "OTHER_PACK2",
			name: "PACK2",
			description: "PACK2",
			acl: {
				dev: {
					urac: [
						{
							version: "2"
						}
					]
				}
			},
			_TTL: NumberInt(21600000)
		}
	]
}
  • No labels