Service - Sale
Revision as of 09:07, 2 January 2026 by Sven the Barbarian (talk | contribs) (Created page with "= Overview = Sales of inventory to customers. = Repository = ... = Object Schemas = ; Additional Information: Per Service Schemas == sale == <syntaxhighlight lang="JavaScript"> { objectType: "customer", canDelete: false, belongTo: { serviceTag: "user", objectType: "user" }, addOnDataStructure: [], storageResources: { myGraph: { storageType: "graph", graphServerTag: "GraphHandler" } }, fieldNames: { saleId: { type: "string", randomO...")
Overview
Sales of inventory to customers.
Repository
...
Object Schemas
- Additional Information
- Per Service Schemas
sale
{
objectType: "customer",
canDelete: false,
belongTo: {
serviceTag: "user",
objectType: "user"
},
addOnDataStructure: [],
storageResources: {
myGraph: {
storageType: "graph",
graphServerTag: "GraphHandler"
}
},
fieldNames: {
saleId: {
type: "string",
randomOnCreate: true,
storageResourceTags: ['myGraph']
},
},
identifiers: [
{
type: "identifier",
fieldName: "saleId"
}
]
}
Relationships
hasSale
{
hasSale: {
storageResources: {
myGraph: {
storageType: "graph",
graphServerTag: "GraphHandler"
}
},
links: [
{
storageResourceTags: ["myGraph"],
from: {
objType: {
serviceTag: "customer",
objectType: "customer"
},
linkType: "one",
},
to: {
objType: {
serviceTag: "sale",
objectType: "sale"
},
linkType: "many"
}
},
]
}
}
Addresses
- use same structure as orders in Izara Market