<?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_4.2.xsd">

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

  <entity name="Role">
    <![CDATA[
    This object store the roles.
    ]]>
    <string name="name" required="true" unique="true" />
    <string name="description" />
    <many-to-many name="menus" ref="com.axelor.meta.db.MetaMenu" mappedBy="roles" />
    <many-to-many name="permissions" ref="Permission" />
    <many-to-many name="metaPermissions" ref="com.axelor.meta.db.MetaPermission" title="Permissions (fields)"/>
  </entity>

</domain-models>
