Service - Currency Table Standard: Difference between revisions
Jump to navigation
Jump to search
Created page with "= Overview = Handler service for standard currencyTables that include historical changes. = Repository = ... = Schemas = ==ObjectSchemas== === currencyTableStandard === <syntaxhighlight lang="JavaScript"> { "objectType": "currencyTableStandard", "extendObjType": { "serviceTag": "CurrencyTableManager", "objectType": "currencyTable" }, "storageResources": {}, "addOnDataStructure": [], "fieldNames": { // from currencyTable objType }, "generatedBy": "use..." |
No edit summary |
||
| Line 77: | Line 77: | ||
== RelationshipSchemas == | == RelationshipSchemas == | ||
=== baseCurrency === | |||
<syntaxhighlight lang="JavaScript"> | |||
{ | |||
"relationshipServiceTag": "CurrencyTableStandard", | |||
"fieldNames": {}, | |||
"storageResources": { | |||
"graph": { | |||
"storageType": "graph", | |||
"graphServerTag": "GraphHandler" | |||
} | |||
}, | |||
"links": [ | |||
{ | |||
"storageResourceTags": [ | |||
"graph" | |||
], | |||
"from": { | |||
"objType": { | |||
"serviceTag": "CurrencyTableStandard", | |||
"objectType": "currencyTableStandard" | |||
}, | |||
"linkType": "many", | |||
"handler": true, | |||
"requiredOnCreate": true | |||
}, | |||
"to": { | |||
"objType": { | |||
"serviceTag": "Currency", | |||
"objectType": "currency" | |||
}, | |||
"linkType": "one", | |||
"requiredOnCreate": false, | |||
"handler": true, | |||
}, | |||
"canDelete": false | |||
} | |||
], | |||
"canMove": false | |||
} | |||
</syntaxhighlight> | |||
=== isCurrency === | === isCurrency === | ||
Revision as of 14:28, 20 May 2026
Overview
Handler service for standard currencyTables that include historical changes.
Repository
...
Schemas
ObjectSchemas
currencyTableStandard
{
"objectType": "currencyTableStandard",
"extendObjType": {
"serviceTag": "CurrencyTableManager",
"objectType": "currencyTable"
},
"storageResources": {},
"addOnDataStructure": [],
"fieldNames": {
// from currencyTable objType
},
"generatedBy": "userGenerated"
}
currencyTableRate
{
"objectType": "currencyTableRate",
"storageResources": {
graph: {
storageType: "graph",
graphServerTag: "GraphHandler",
}
},
"addOnDataStructure": [
{
type:"versionedData",
versionedDataLabel: "currencyTableRateValue",
storageResourceTag : "graph",
fieldNames: {
"exchangeRate":{
type: "number",
requiredOnCreate: true,
validation: {},
},
}
},
],
"fieldNames": {
currencyTableId: {
type: "string",
randomOnCreate: true,
storageResourceTags: ['graph']
fromObjType:{
serviceTag: "xxx",
objectType: "xxx"
},
},
},
identifiers: [
{
type: "identifier",
fieldNames: ["xx","yy"], // waiting confirm how to hash currencyTableID and currencyId
name: "zz", // name of field in database
},
]
"generatedBy": "userGenerated"
}
RelationshipSchemas
baseCurrency
{
"relationshipServiceTag": "CurrencyTableStandard",
"fieldNames": {},
"storageResources": {
"graph": {
"storageType": "graph",
"graphServerTag": "GraphHandler"
}
},
"links": [
{
"storageResourceTags": [
"graph"
],
"from": {
"objType": {
"serviceTag": "CurrencyTableStandard",
"objectType": "currencyTableStandard"
},
"linkType": "many",
"handler": true,
"requiredOnCreate": true
},
"to": {
"objType": {
"serviceTag": "Currency",
"objectType": "currency"
},
"linkType": "one",
"requiredOnCreate": false,
"handler": true,
},
"canDelete": false
}
],
"canMove": false
}
isCurrency
{
"relationshipServiceTag": "CurrencyTableStandard",
"fieldNames": {},
"storageResources": {
"graph": {
"storageType": "graph",
"graphServerTag": "GraphHandler"
}
},
"links": [
{
"storageResourceTags": [
"graph"
],
"from": {
"objType": {
"serviceTag": "CurrencyTableRate",
"objectType": "currencyTableRate"
},
"linkType": "many",
"handler": true,
"requiredOnCreate": true
},
"to": {
"objType": {
"serviceTag": "Currency",
"objectType": "currency"
},
"linkType": "one",
"requiredOnCreate": false,
"handler": true,
},
"canDelete": false
}
],
"canMove": false
}
hasCurrencyRate
{
"relationshipServiceTag": "CurrencyTableStandard",
"fieldNames": {},
"storageResources": {
"graph": {
"storageType": "graph",
"graphServerTag": "GraphHandler"
}
},
"links": [
{
"storageResourceTags": [
"graph"
],
"from": {
"objType": {
"serviceTag": "CurrencyTableStandard",
"objectType": "currencyTableStandard"
},
"linkType": "one",
"handler": true,
"requiredOnCreate": false
},
"to": {
"objType": {
"serviceTag": "CurrencyTableStandard",
"objectType": "currencyTableRate"
},
"linkType": "many",
"requiredOnCreate": true,
"handler": true,
},
"canDelete": false
}
],
"canMove": false
}