src-db/database/model/tables/MA_MACHINE.xml
author Gorka Ion Damián <gorkaion.damian@openbravo.com>
Thu, 02 Oct 2008 17:34:49 +0000
changeset 1741 e9ffb0a9acc5
parent 1605 8a0fe0193bef
child 5551 7a30caea85b5
permissions -rw-r--r--
Added to the application dictionary existing columns:
MA_PL_EMPLOYEE CALCCOST
MA_PL_IC CALCCOST
MA_PL_MACHINE CALCCOST
M_ATTRIBUTESETINSTANCE ISLOCKED
M_ATTRIBUTESETINSTANCE LOCK_DESCRIPTION
MA_WRPHASEPRODUCT COMPONENTCOST
M_PRODUCT CAPACITY
M_PRODUCT DELAYMIN
M_PRODUCT MRP_PLANNER_ID
M_PRODUCT MRP_PLANNINGMETHOD_ID
M_PRODUCT QTYMAX
M_PRODUCT QTYMIN
M_PRODUCT QTYSTD
M_PRODUCT QTYTYPE
M_PRODUCT STOCKMIN
M_PRODUCTIONLINE CALCCOST
M_PRODUCTIONLINE COMPONENTCOST
M_PRODUCTIONPLAN CALCCOST
M_TRANSACTION M_INTERNAL_CONSUMPTIONLINE_ID

Deleted non used columns from database:
MA_MACHINE COST
MA_PROCESSPLAN CALCULATED
<?xml version="1.0"?>
  <database name="TABLE MA_MACHINE">
    <table name="MA_MACHINE" primaryKey="MA_MACHINE_KEY">
      <column name="MA_MACHINE_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
        <default><![CDATA[Y]]></default>
        <onCreateDefault/>
      </column>
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
        <default><![CDATA[SYSDATE]]></default>
        <onCreateDefault/>
      </column>
      <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
        <default><![CDATA[SYSDATE]]></default>
        <onCreateDefault/>
      </column>
      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="NAME" primaryKey="false" required="true" type="NVARCHAR" size="60" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="PURCHASEYEAR" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
        <default><![CDATA[SYSDATE]]></default>
        <onCreateDefault/>
      </column>
      <column name="USECYCLE" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="VALUE" primaryKey="false" required="true" type="NVARCHAR" size="40" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="MA_COSTCENTER_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="MA_MACHINE_TYPE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <foreign-key foreignTable="AD_ORG" name="AD_ORG_MAMACHINE">
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_MAMACHINE">
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
      </foreign-key>
      <foreign-key foreignTable="MA_COSTCENTER" name="MA_COSTCENTER_MAMACHINE">
        <reference local="MA_COSTCENTER_ID" foreign="MA_COSTCENTER_ID"/>
      </foreign-key>
      <foreign-key foreignTable="MA_MACHINE_TYPE" name="MA_MACHINE_TYPE_MAMACHINE">
        <reference local="MA_MACHINE_TYPE_ID" foreign="MA_MACHINE_TYPE_ID"/>
      </foreign-key>
      <check name="MA_MACHINE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
    </table>
  </database>