Service - Organization: Difference between revisions
Jump to navigation
Jump to search
(Created page with "= Overview = A user can have many organizations, each organization has it's independant accounting. = Repository = ... = Object Schemas = ; Additional Information: Per Service Schemas == organization == <syntaxhighlight lang="JavaScript"> { objectType: "organization", canDelete: false, belongTo: { serviceTag: "user", objectType: "user" }, addOnDataStructure: [ type: "propertyValue" ], storageResources: { myGraph: { storageType: "graph", gra...") |
|||
| Line 40: | Line 40: | ||
canUpdate: true, | canUpdate: true, | ||
userCanUpdate:true, | userCanUpdate:true, | ||
storageResourceTags: ['myGraph'] | |||
}, | |||
functionalCurrency: { | |||
type: "currency", | |||
storageResourceTags: ['myGraph'] | storageResourceTags: ['myGraph'] | ||
}, | }, | ||
Revision as of 12:34, 4 January 2026
Overview
A user can have many organizations, each organization has it's independant accounting.
Repository
...
Object Schemas
- Additional Information
- Per Service Schemas
organization
{
objectType: "organization",
canDelete: false,
belongTo: {
serviceTag: "user",
objectType: "user"
},
addOnDataStructure: [
type: "propertyValue"
],
storageResources: {
myGraph: {
storageType: "graph",
graphServerTag: "GraphHandler"
}
},
fieldNames: {
organizationId: {
type: "string",
randomOnCreate: true,
storageResourceTags: ['myGraph']
},
organizationName: {
type: "string",
requiredOnCreate: true,
canUpdate: true,
userCanUpdate:true,
storageResourceTags: ['myGraph']
},
functionalCurrency: {
type: "currency",
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