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.)**
56 lines (55 loc) • 947 B
JSON
{
"validateUpsert": true,
"properties": {
"id": {
"type": "string",
"id": true,
"json": false
},
"host": {
"type": "string"
},
"port": {
"type": "number"
},
"url": {
"type": "string"
},
"database": {
"type": "string"
},
"username": {
"type": "string"
},
"password": {
"type": "string"
},
"facetName": {
"type": "string",
"required": true,
"json": false
}
},
"public": true,
"dataSource": "db",
"options": {
"defaultConfigFile": "datasources.json",
"configFiles": [
"datasources.json",
"datasources.*.json"
]
},
"base": "Definition",
"relations": {
"models": {
"type": "hasMany",
"model": "ModelConfig",
"foreignKey": "dataSource"
},
"facet": {
"type": "belongsTo",
"model": "Facet",
"foreignKey": "facetName"
}
}
}