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

  <entity name="Frequency">
    <string name="summary" namecolumn="true"/>

    <boolean name="monday" title="Monday"/>
    <boolean name="tuesday" title="Tuesday"/>
    <boolean name="wednesday" title="Wednesday"/>
    <boolean name="thursday" title="Thursday"/>
    <boolean name="friday" title="Friday"/>
    <boolean name="saturday" title="Saturday"/>
    <boolean name="sunday" title="Sunday"/>

    <string name="typeSelect" title="Type" default="monthDays" selection="frequency.base.type.select"/>
    <integer name="everyNWeeks" title="Every N weeks" min="1" default="1"/>
    <boolean name="first" title="First"/>
    <boolean name="second" title="Second"/>
    <boolean name="third" title="Third"/>
    <boolean name="fourth" title="Fourth"/>
    <boolean name="last" title="Last"/>

    <boolean name="january" title="January" default="true"/>
    <boolean name="february" title="February" default="true"/>
    <boolean name="march" title="March" default="true"/>
    <boolean name="april" title="April" default="true"/>
    <boolean name="may" title="May" default="true"/>
    <boolean name="june" title="June" default="true"/>
    <boolean name="july" title="July" default="true"/>
    <boolean name="august" title="August" default="true"/>
    <boolean name="september" title="September" default="true"/>
    <boolean name="october" title="October" default="true"/>
    <boolean name="november" title="November" default="true"/>
    <boolean name="december" title="December" default="true"/>

    <date name="endDate" title="Ends on"/>

    <extra-code>
      <![CDATA[
        // Type Select
        public static final String TYPE_MONTH_DAYS = "monthDays";
        public static final String TYPE_EVERY_N_WEEKS = "everyNWeeks";
      ]]>
    </extra-code>
  </entity>

</domain-models>
