Service - Organization: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 1: | Line 1: | ||
= Overview = | = Overview = | ||
A user can have many organizations, each organization has it's | A user can have many organizations, each organization has it's independent accounting. | ||
= Repository = | = Repository = | ||
Revision as of 00:54, 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"
],
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