{
  "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"
    }
  }
}
