database/model/tables/MA_PROCESS.xml
author Adrián Romero <adrian.romero@openbravo.com>
Wed, 05 Dec 2007 20:43:45 +0000
changeset 170 4b5493776a7f
parent 94 4e7ba7b8a4ad
child 238 006d2d0fdea6
permissions -rw-r--r--
Bug fixed: [ 1845110 ] Database model not in sync with database created
<?xml version="1.0"?>
  <database name="TABLE MA_PROCESS">
    <table name="MA_PROCESS" primaryKey="MA_PROCESS_KEY">
      <column name="MA_PROCESS_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="SYSDATE" autoIncrement="false"/>
      <column name="CREATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="SYSDATE" autoIncrement="false"/>
      <column name="UPDATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
      <column name="NAME" primaryKey="false" required="true" type="NVARCHAR" size="60" autoIncrement="false"/>
      <column name="VALUE" primaryKey="false" required="true" type="NVARCHAR" size="40" autoIncrement="false"/>
      <column name="MA_WORKSTATION_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
      <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false"/>
      <column name="MA_CC_IDPREP" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
      <column name="MA_CC_IDWORK" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
      <column name="MA_COSTCENTER_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
      <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_MAPROCESS">
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_ORG" name="AD_ORG_MAPROCESS">
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
      </foreign-key>
      <foreign-key foreignTable="MA_COSTCENTER" name="MA_COSTCENTER_MAPROCESS">
        <reference local="MA_COSTCENTER_ID" foreign="MA_COSTCENTER_ID"/>
      </foreign-key>
      <foreign-key foreignTable="MA_COSTCENTER" name="MA_COSTCENTER_MAPROCESSPREP">
        <reference local="MA_CC_IDPREP" foreign="MA_COSTCENTER_ID"/>
      </foreign-key>
      <foreign-key foreignTable="MA_COSTCENTER" name="MA_COSTCENTER_MAPROCESSWORK">
        <reference local="MA_CC_IDWORK" foreign="MA_COSTCENTER_ID"/>
      </foreign-key>
      <foreign-key foreignTable="MA_WORKSTATION" name="MA_WORKSTATION_MAPROCESS">
        <reference local="MA_WORKSTATION_ID" foreign="MA_WORKSTATION_ID"/>
      </foreign-key>
      <check name="MA_PROCESS_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
    </table>
  </database>