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

  <entity name="Group" cachable="true">
    <![CDATA[
    This object store the groups.
    ]]>
    
  	<string name="code" required="true" unique="true" min="2"/>
  	<string name="name" required="true" unique="true" min="2"/>
    <string name="navigation" selection="select.user.navigation"/>
    <string name="homeAction" help="Default home action."/>

    <boolean name="technicalStaff" help="Specify whether the members of this group are technical staff." />

    <many-to-many name="roles" ref="Role" />
    <many-to-many name="permissions" ref="Permission" />
    <many-to-many name="metaPermissions" ref="com.axelor.meta.db.MetaPermission" title="Permissions (fields)"/>

    <many-to-many name="menus" ref="com.axelor.meta.db.MetaMenu" mappedBy="groups" />
    <many-to-many name="views" ref="com.axelor.meta.db.MetaView" mappedBy="groups" />
  </entity>
  
</domain-models>
