Products
Database Information
Database Name | Database Type | Collection Name |
|---|---|---|
%tenant_code%_multitenant | MongoDB | products |
Record Explanation
| Field Name | Type | Mandatory | Unique | Indexed | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| _id | Mongo ID | YES | YES | YES | Mongo Record ID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| code | String | YES | YES | YES | Product Code | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name | String | YES | NO | NO | Product Name | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description | String | NO | NO | NO | Product Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| scope | Object | NO | NO | NO | Product ACL and permission | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| packages | Object | NO | NO | NO | Packages in product | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Sample
The below Product has two packages. package 1 and PACK 2
Record Sample
{
_id: ObjectId("5d779088f13f2c08f8cdc034"),
code: "TEST2",
name: "Test 2 Product",
description: "this is a description for test 2 product",
console: false,
packages: [
{
code: "TEST2_NEWS",
name: "news package",
description: "this is a description for test 2 product news package",
acl: {
dashboard: {
oauth: [
{
version: "1",
get: [
"Guest"
],
post: [
"Guest",
"Tokenization"
],
delete: [
"Tokenization"
]
}
]
}
},
_TTL: NumberInt(86400000)
},
{
code: "TEST2_NEW",
name: "new package",
description: "this is a description for test 2 product new package",
acl: {
dashboard: {
urac: [
{
version: "2",
post: [
"Guest Password Settings"
],
get: [
"Guest Password Settings",
"Guest Email Validation"
]
}
]
}
},
_TTL: NumberInt(86400000)
}
]
}