@tradle/models
Version:
models for tradle apps
63 lines (62 loc) • 1.15 kB
JSON
{
"id": "tradle.ProductRequest",
"title": "Product Request",
"subClassOf": "tradle.Form",
"interfaces": [
"tradle.Context"
],
"type": "tradle.Model",
"properties": {
"requestFor": {
"type": "string",
"range": "model",
"displayName": true
},
"contextId": {
"type": "string",
"readOnly": true,
"immutable": true
},
"associatedResource": {
"type": "string",
"description": "resourceID in a format [type_]permalink"
},
"parentApplication": {
"type": "string",
"description": "associated application hash"
},
"notes": {
"type": "object",
"range": "json"
},
"bundleId": {
"type": "string"
}
},
"viewCols": [
"requestFor",
"contextId"
],
"required": [
"requestFor",
"contextId"
],
"indexes": [
{
"hashKey": "contextId",
"rangeKey": "_time"
},
{
"hashKey": "associatedResource",
"rangeKey": "_time"
},
{
"hashKey": "_orgOrAuthor",
"rangeKey": "_time"
},
{
"hashKey": "_t",
"rangeKey": "_time"
}
]
}