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

    <entity name="Machine" lang="java">
	    <many-to-one name="picture" ref="com.axelor.meta.db.MetaFile" title="Image" index="false"/>
        <string name="name" title="Name" required="true"/>
        <string name="serialNumber" title="Serial Nbr"/>
        <string name="brand" title="Brand"/>
        <string name="description" title="Description" large="true"/>
        <many-to-one name="stockLocation" ref="com.axelor.apps.stock.db.StockLocation" title="Stock location"/>
        <many-to-one name="machineType" ref="com.axelor.apps.production.db.MachineType" title="Machine Type"/>
        <long name="startingDuration" title="Starting duration (hh:mm:ss)"/>
        <long name="setupDuration" title="Duration between two cycles (hh:mm:ss)"/>
        <long name="endingDuration" title="Ending duration (hh:mm:ss)"/>
        <many-to-one name="weeklyPlanning" ref="com.axelor.apps.base.db.WeeklyPlanning" title="Machine's planning"/>
        <long name="operatingDuration" title="Operating duration" default="0"/>

    </entity>
</domain-models>
