loopback-workspace
Version:
**⚠️ LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical security fixes will be provided. (See [Module Long Term Support Policy](#module-long-term-support-policy) below.)**
51 lines (50 loc) • 925 B
JSON
{
"validateUpsert": true,
"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"
}
}
}