Service - Account Assets

From Izara Wiki
Revision as of 12:32, 11 January 2026 by Sven the Barbarian (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

Handler service for accounts classified as Assets.

Repository

...

Schemas

ObjectSchemas

accountAssets

{
  "objectType": "accountAssets",
  "extendObjType": {
    "serviceTag": "AccountManager",
    "objectType": "account"
  },
  "storageResources": {
    "graph": {
      "storageType": "graph",
      "graphServerTag": "GraphHandler"
    }
    "dynamo": {
      "storageType": "dynamoDB",
      "tableName": "accountAssets",
    }    
  },
  "addOnDataStructure": [],
  "fieldNames": {
    // from account objType
  },
  "generatedBy": "userGenerated"
}

accountAssetDepreciation

{
  "objectType": "accountAssetDepreciation",
  "extendObjType": {
    "serviceTag": "AccountManager",
    "objectType": "account"
  },
  "storageResources": {
    "graph": {
      "storageType": "graph",
      "graphServerTag": "GraphHandler"
    }
    "dynamo": {
      "storageType": "dynamoDB",
      "tableName": "accountAssetDepreciation",
    }    
  },
  "addOnDataStructure": [],
  "fieldNames": {
    // from account objType
  },
  "generatedBy": "userGenerated"
}

RelationshipSchemas

hasAssetDepreciation

{
  "relationshipServiceTag": "AccountAssets",
  "fieldNames": {},
  "storageResources": {
    "graph": {
      "storageType": "graph",
      "graphServerTag": "GraphHandler"
    }
  },
  "links": [
    {
      "storageResourceTags": [
        "graph"
      ],
      "from": {
        "objType": {
          "serviceTag": "AccountAssets",
          "objectType": "accountAssets"
        },
        "linkType": "one",
        "handler": true,
        "requiredOnCreate": false
      },
      "to": {
        "objType": {
          "serviceTag": "AccountAssets",
          "objectType": "accountAssetDepreciation"
        },
        "linkType": "many",
        "requiredOnCreate": true,
        "handler": true,
      },
      "canDelete": false
    }
  ],
  "canMove": false
}

Working documents

Account Assets