Service - Customer
Revision as of 08:56, 2 January 2026 by Sven the Barbarian (talk | contribs) (Created page with "= Overview = Customer instances. = Repository = ... = Object Schemas = ; Additional Information: Per Service Schemas == customer == <syntaxhighlight lang="JavaScript"> { objectType: "customer", canDelete: false, belongTo: { serviceTag: "user", objectType: "user" }, addOnDataStructure: [ { type:"propertyValue" }, { type: "mediaLink", mediaLinkPrefix: "customerMedia" }, ], storageResources: {...")
Overview
Customer instances.
Repository
...
Object Schemas
- Additional Information
- Per Service Schemas
customer
{
objectType: "customer",
canDelete: false,
belongTo: {
serviceTag: "user",
objectType: "user"
},
addOnDataStructure: [
{
type:"propertyValue"
},
{
type: "mediaLink",
mediaLinkPrefix: "customerMedia"
},
],
storageResources: {
myGraph: {
storageType: "graph",
graphServerTag: "GraphHandler"
}
},
fieldNames: {
customerId: {
type: "string",
randomOnCreate: true,
storageResourceTags: ['myGraph']
},
},
identifiers: [
{
type: "identifier",
fieldName: "customerId"
}
]
}
Relationships
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