Service - Customer
Overview
Customer instances.
Repository
...
Object Schemas
- Additional Information
- Per Service Schemas
customer
{
objectType: "customer",
canDelete: false,
belongTo: {
serviceTag: "Business",
objectType: "business"
},
addOnDataStructure: [
{
type:"propertyValue"
},
{
type: "mediaLink",
mediaLinkPrefix: "customer"
},
],
storageResources: {
myGraph: {
storageType: "graph",
graphServerTag: "GraphHandler"
}
},
fieldNames: {
customerId: {
type: "string",
randomOnCreate: true,
storageResourceTags: ['myGraph']
},
},
identifiers: [
{
type: "identifier",
fieldName: "customerId"
}
]
}
RelationshipSchemas
hasInventoryTemplate
{
hasInventoryTemplate: {
storageResources: {
myGraph: {
storageType: "graph",
graphServerTag: "GraphHandler"
}
},
links: [
{
storageResourceTags: ["myGraph"],
from: {
objType: {
serviceTag: "inventoryManager",
objectType: "inventory"
},
linkType: "many",
},
to: {
objType: {
serviceTag: "inventoryTemplate",
objectType: "inventoryTemplate"
},
linkType: "many"
}
},
{
storageResourceTags: ["myGraph"],
from: {
objType: {
serviceTag: "inventoryTemplate",
objectType: "inventoryTemplate"
},
linkType: "many",
},
to: {
objType: {
serviceTag: "inventoryTemplate",
objectType: "inventoryTemplate"
},
linkType: "many"
}
}
]
}
}
Addresses
- use same structure as users in Izara Market