<?xml version="1.0" ?>
<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_4.2.xsd">

  <module name="meta" package="com.axelor.meta.db" />

  <entity name="MetaFilter" table="META_FILTER">
    <![CDATA[
    This object store the custom filters.
    ]]>

    <string name="name" required="true" />
    <string name="title" required="true" namecolumn="true" />
    <string name="filters" />
    <string name="filterCustom" large="true" />
    <string name="filterView" required="true" />

    <boolean name="shared"/>
    <many-to-one name="user" column="user_id" ref="com.axelor.auth.db.User" required="true" />

    <unique-constraint columns="name,filterView"/>
  </entity>

</domain-models>
