Service - Organization
Revision as of 01:00, 5 January 2026 by Sven the Barbarian (talk | contribs)
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