database/model/tables/MA_COSTCENTER_VERSION.xml
author Adrián Romero <adrian.romero@openbravo.com>
Tue, 20 Nov 2007 16:27:14 +0000
changeset 94 4e7ba7b8a4ad
parent 0 0247c26f10c6
child 238 006d2d0fdea6
permissions -rw-r--r--
fix: Changed check constraint names and foreign key names to fit in to
30 characteres.
<?xml version="1.0"?>
  <database name="TABLE MA_COSTCENTER_VERSION">
    <table name="MA_COSTCENTER_VERSION" primaryKey="MA_COSTCENTER_VERSION_KEY">
      <column name="MA_COSTCENTER_VERSION_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="DOCUMENTNO" primaryKey="false" required="true" type="NVARCHAR" size="30" autoIncrement="false"/>
      <column name="COST" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false"/>
      <column name="MA_COSTCENTER_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
      <column name="COSTUOM" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
      <column name="VALIDFROM" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false"/>
      <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_MACOSTCENTER_VERSION">
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_ORG" name="AD_ORG_MACOSTCENTER_VERSION">
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
      </foreign-key>
      <foreign-key foreignTable="MA_COSTCENTER" name="COSTCENTER_COSTCENTERVERSION">
        <reference local="MA_COSTCENTER_ID" foreign="MA_COSTCENTER_ID"/>
      </foreign-key>
      <check name="MA_COSTCENTER_V_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
    </table>
  </database>