Service - Customer

From Izara Wiki
Revision as of 13:49, 19 January 2026 by Sven the Barbarian (talk | contribs) (→‎Relationships)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Working documents

Inventory Template