{
  "collectionName": "components_option_variants",
  "info": {
    "displayName": "Variant",
    "icon": "toggle-on",
    "description": ""
  },
  "options": {},
  "attributes": {
    "title": {
      "type": "string",
      "required": true
    },
    "description": {
      "type": "text"
    },
    "price": {
      "type": "decimal",
      "default": 0
    },
    "price_adjustments": {
      "displayName": "Price Adjustment",
      "type": "component",
      "repeatable": true,
      "component": "option.price-adjustment"
    },
    "not_available_in": {
      "type": "relation",
      "relation": "oneToMany",
      "target": "api::configurator.configurator"
    },
    "file_name": {
      "type": "string",
      "regex": "^(.(?![_.]))*$"
    },
    "only_available_in": {
      "type": "relation",
      "relation": "oneToMany",
      "target": "api::configurator.configurator"
    },
    "presets": {
      "type": "relation",
      "relation": "oneToMany",
      "target": "api::preset.preset"
    },
    "dependent_options": {
      "type": "relation",
      "relation": "oneToMany",
      "target": "api::option.option"
    },
    "dependent_scenes": {
      "type": "relation",
      "relation": "oneToMany",
      "target": "api::scene.scene"
    },
    "scanner_tags": {
      "type": "text"
    },
    "bkp": {
      "type": "relation",
      "relation": "oneToOne",
      "target": "api::bkp.bkp"
    },
    "identifier": {
      "type": "string"
    },
    "show_as_list": {
      "type": "boolean",
      "default": false
    },
    "action_key": {
      "type": "string"
    },
    "price_postfix": {
      "type": "enumeration",
      "enum": [
        "default",
        "per-month",
        "per-year",
        "per-m2",
        "per-m2-per-month",
        "per-m2-per-year"
      ],
      "default": "default"
    },
    "area": {
      "type": "decimal"
    }
  }
}
