Service - Customer: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 17: Line 17:
canDelete: false,
canDelete: false,
belongTo: {
belongTo: {
serviceTag: "user",
serviceTag: "Business",
objectType: "user"
objectType: "business"
},
},
addOnDataStructure: [
addOnDataStructure: [

Revision as of 01:18, 5 January 2026

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"
		}
    ]
}

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

Working documents

Inventory Template