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