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

    <entity name="ConfiguratorCreator" lang="java">

        <string name="name" title="Name" required="true"/>
        <one-to-many name="attributes" ref="com.axelor.meta.db.MetaJsonField" title="Attributes" orphanRemoval="true" />
        <one-to-many name="indicators" ref="com.axelor.meta.db.MetaJsonField" title="Indicators" orphanRemoval="true" />
        <one-to-many name="configuratorProductFormulaList" mappedBy="productCreator"
                     title="Configurator formula list"
                     ref="com.axelor.apps.sale.db.ConfiguratorProductFormula"/>
        <one-to-many name="configuratorSOLineFormulaList" mappedBy="soLineCreator"
                     title="Configurator formula list"
                     ref="com.axelor.apps.sale.db.ConfiguratorSOLineFormula"/>
        <many-to-many name="authorizedUserSet" title="Authorized users"
                     ref="com.axelor.auth.db.User"/>
        <many-to-many name="authorizedGroupSet" title="Authorized groups"
                     ref="com.axelor.auth.db.Group"/>
        <boolean name="generateProduct" title="Generate product" default="true"/>

        <boolean name="isActive" title="Is Active" default="false"/>

    </entity>
</domain-models>
