{
  "name": "ComponentConfig",
  "base": "Definition",
  "defaultConfigFile": "component-config.json",
  "configFiles": [
    "component-config.json",
    "component-config.*.json"
  ],
  "validateUpsert": true,
  "properties": {
    "id": {
      "type": "string",
      "id": true,
      "json": false
    },
    "facetName": {
      "type": "string",
      "required": true,
      "json": false
    },
    "name": {
      "type": "string",
      "json": false
    },
    "value": {
      "type": "any"
    }
  },
  "relations": {
    "facet": {
      "type": "belongsTo",
      "model": "Facet",
      "foreignKey": "facetName"
    }
  }
}
