<?xml version="1.0" encoding="UTF-8"?>
<domain-models xmlns="http://axelor.com/xml/ns/domain-models"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://axelor.com/xml/ns/domain-models http://axelor.com/xml/ns/domain-models/domain-models_5.2.xsd">
  
  <module name="studio" package="com.axelor.studio.db" />
  
  <entity name="Filter" cacheable="true">
  	<![CDATA[
     Filter represents a condition to evaluate.  It stores condition components like operand, operator and value. 
     A sql or groovy condition will be created by using this. 
    ]]>
  	<string name="moduleName" title="Module" />
    <many-to-one name="chartBuilder" ref="com.axelor.studio.db.ChartBuilder" />
  	<many-to-one name="metaField" title="Field" ref="com.axelor.meta.db.MetaField"/>
  	<many-to-one name="metaJsonField" title="Json Field" ref="com.axelor.meta.db.MetaJsonField"/>
  	<many-to-one name="wkfTransition" ref="com.axelor.studio.db.WkfTransition" />
  	<many-to-one name="wkf" ref="com.axelor.studio.db.Wkf" />
  	<string name="operator" title="Operator" selection="studio.filter.operator" required="true" />
  	<many-to-one name="actionBuilder" ref="com.axelor.studio.db.ActionBuilder" />
  	<string name="targetField" title="Target field"/>
  	<string name="targetType" title="Target type"/>
  	<string name="value" title="Value" />
  	<string name="defaultValue" title="Default Value" />
  	<string name="targetTitle" title="Target title"/>
  	<boolean name="isParameter" title="Is parameter" />
  	<boolean name="isJson" title="Is json" />
  	<boolean name="isTargetJson" title="Target json" />
  	<integer name="logicOp" title="Logic operator" selection="studio.filter.logic.operator" default="0"/>
  </entity>
    
 </domain-models>