<?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="marketing" package="com.axelor.apps.marketing.db"/>

  <entity name="TargetList" lang="java" sequential="true">
  	
  	<string name="name" title="Name" required="true"/>
  	<one-to-many name="partnerFilterList" ref="com.axelor.studio.db.Filter" title="Partner filters" />
  	<integer name="partnerTypeSelect" title="Select type" selection="target.partner.type.select" />
  	<many-to-many name="partnerSet" ref="com.axelor.apps.base.db.Partner" title="Additional Partner/Contacts" />
  	<string name="partnerQuery" title="Partner Query" large="true"/>
  	<integer name="partnerQueryTypeSelect" title="Select Query type" selection="marketing.target.list.query.type.select" default="0" />
  	
  	<one-to-many name="leadFilterList" ref="com.axelor.studio.db.Filter" title="Lead filters" />
  	<many-to-many name="leadSet" ref="com.axelor.apps.crm.db.Lead" title="Additional leads" />
  	<string name="leadQuery" title="Lead Query" large="true"/>
  	<integer name="leadQueryTypeSelect" title="Select Query type" selection="marketing.target.list.query.type.select" default="0" />
  </entity>

</domain-models>
