<?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="MenuBuilder" cacheable="true">
     <string name="name" title="Name" unique="true"/>
     <string name="title" title="Title" required="true" />
     <string name="icon" title="Icon" />
     <string name="iconBackground" title="Background" />
     <integer name="order" title="MenuBuilder.Order" column="order_seq" />
     <string name="tag" title="Tag label"/>
     <string name="tagGet" title="Tag method"/>
     <boolean name="tagCount" title="Tag count"/>
     <string name="tagStyle" selection="label.style.selection" title="Tag style"/>
     <boolean name="top" column="top_menu" title="Top menu"/>
     <boolean name="left" column="left_menu" default="true" title="Left menu"/>
     <boolean name="mobile" column="mobile_menu" title="Mobile menu"/>
     <boolean name="hidden" title="Hidden menu"/>
     <string name="link" />
     <many-to-many name="groups" ref="com.axelor.auth.db.Group"/>
     <many-to-many name="roles" ref="com.axelor.auth.db.Role"/>
     <string name="conditionToCheck" max="1024" title="If" help="Only use this menu-item if the given expression is true."/>
     <string name="moduleToCheck" title="If-module" help="Only use this menu-item if the given module is installed."/>
 
     <many-to-one name="metaMenu" title="MetaMenu" ref="com.axelor.meta.db.MetaMenu"/>    
     <many-to-one name="parentMenu" title="Parent" ref="com.axelor.meta.db.MetaMenu"/>
     <many-to-one name="actionBuilder" ref="ActionBuilder" title="Action"/>
     <boolean name="showAction" title="Object"/>
     <many-to-one name="appBuilder" ref="AppBuilder" title="App builder" />
     <many-to-one name="metaModule" ref="com.axelor.meta.db.MetaModule" />
     
     <finder-method name="findByParentMenu" using="parentMenu" all="true"/>
  </entity>
  
</domain-models>
