loopback-workspace
Version:
49 lines • 898 B
JSON
{
"properties": {
"id": {
"type": "string",
"id": true,
"json": false
},
"facetName": {
"type": "string",
"required": true,
"json": false
},
"name": {
"type": "string",
"json": false
},
"dataSource": {
"type": "string"
},
"public": {
"type": "boolean"
}
},
"dataSource": "db",
"options": {
"defaultConfigFile": "model-config.json",
"configFiles": [
"model-config.json"
]
},
"base": "WorkspaceEntity",
"relations": {
"facet": {
"type": "belongsTo",
"model": "Facet",
"foreignKey": "facetName"
},
"dataSourceRef": {
"type": "belongsTo",
"model": "DataSourceDefinition",
"foreignKey": "dataSource"
},
"definition": {
"type": "hasOne",
"model": "ModelDefinition",
"foreignKey": "name"
}
}
}