{
  "validateUpsert": true,
  "properties": {
    "id": {
      "type": "string",
      "id": true,
      "json": false
    },
    "modelId": {
      "type": "string",
      "required": true,
      "json": false
    },
    "facetName": {
      "type": "string",
      "required": true,
      "json": false
    },
    "accessType": {
      "type": "string"
    },
    "principalType": {
      "type": "string"
    },
    "principalId": {
      "type": "string"
    },
    "permission": {
      "type": "string",
      "required": true
    },
    "property": {
      "type": "string"
    },
    "index": {
      "type": "number",
      "json": false,
      "default": 0
    }
  },
  "public": true,
  "dataSource": "db",
  "base": "WorkspaceEntity",
  "relations": {
    "model": {
      "type": "belongsTo",
      "model": "ModelDefinition",
      "foreignKey": "modelId"
    }
  }
}
