Service - Organization: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 21: Line 21:
},
},
addOnDataStructure: [
addOnDataStructure: [
type: "propertyValue"
{
type: "propertyValue"
},
{
type:"versionedData",
versionedDataLabel: "organizationDetail",
storageResourceTag : "myGraph",
fieldNames: {
"organizationName":{
type: "string",
requiredOnCreate: true,
canUpdate: true,
userCanUpdate: true,
},
}
},
],
],
storageResources: {
storageResources: {
Line 33: Line 48:
type: "string",
type: "string",
randomOnCreate: true,
randomOnCreate: true,
storageResourceTags: ['myGraph']
},
organizationName: {
type: "string",
requiredOnCreate: true,
canUpdate: true,
userCanUpdate:true,
storageResourceTags: ['myGraph']
storageResourceTags: ['myGraph']
},
},
functionalCurrency: {
functionalCurrency: {
type: "currency",
type: "currency",
requiredOnCreate: true,
canUpdate: false,
userCanUpdate: false,
storageResourceTags: ['myGraph']
storageResourceTags: ['myGraph']
},
},

Revision as of 01:00, 5 January 2026

Overview

A user can have many organizations, each organization has it's independent accounting.

Repository

...

Object Schemas

Additional Information
Per Service Schemas

organization

{
	objectType: "organization",
	canDelete: false,
	belongTo: {
		serviceTag: "user",
		objectType: "user"
	},
	addOnDataStructure: [
		{
			type: "propertyValue"
		},
		{
			type:"versionedData",
			versionedDataLabel: "organizationDetail",
			storageResourceTag : "myGraph",
			fieldNames: {
				"organizationName":{
					type: "string",
					requiredOnCreate: true,
					canUpdate: true,
					userCanUpdate: true,
				},
			}
		},
	],
	storageResources: {
		myGraph: {
			storageType: "graph",
			graphServerTag: "GraphHandler"
		}
    },
    fieldNames: {
		organizationId: {
			type: "string",
			randomOnCreate: true,
			storageResourceTags: ['myGraph']
		},
		functionalCurrency: {
			type: "currency",
			requiredOnCreate: true,
			canUpdate: false,
			userCanUpdate: false,
			storageResourceTags: ['myGraph']
		},
    },
    identifiers: [
		{
			type: "identifier",
			fieldName: "organizationId"
		}
    ]
}

Relationships

hasOrganization

{
	hasInventoryTemplate: {
		storageResources: {
			myGraph: {
				storageType: "graph",
				graphServerTag: "GraphHandler"			
			}
		},
		links: [
			{
				storageResourceTags: ["myGraph"],
				from: {
					objType: {
						serviceTag: "user",
						objectType: "user"
					},
					linkType: "one",
				},
				to: {
					objType: {
						serviceTag: "organization",
						objectType: "organization"
					},
					linkType: "many"
				}
			},
		]
	}
}

Addresses

  • use same structure as users in Izara Market

Working documents

Organization