database/model/tables/MA_COSTCENTER_VERSION.xml
changeset 94 4e7ba7b8a4ad
parent 0 0247c26f10c6
child 238 006d2d0fdea6
equal deleted inserted replaced
93:058b91261f0d 94:4e7ba7b8a4ad
     1 <?xml version="1.0"?>
     1 <?xml version="1.0"?>
     2 <database name="TABLE MA_COSTCENTER_VERSION">
     2   <database name="TABLE MA_COSTCENTER_VERSION">
     3     <table name="MA_COSTCENTER_VERSION" primaryKey="MA_COSTCENTER_VERSION_KEY">
     3     <table name="MA_COSTCENTER_VERSION" primaryKey="MA_COSTCENTER_VERSION_KEY">
     4       <column name="MA_COSTCENTER_VERSION_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
     4       <column name="MA_COSTCENTER_VERSION_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
     5       <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
     5       <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
     6       <column name="AD_ORG_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
     6       <column name="AD_ORG_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
     7       <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
     7       <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
    12       <column name="DOCUMENTNO" primaryKey="false" required="true" type="NVARCHAR" size="30" autoIncrement="false"/>
    12       <column name="DOCUMENTNO" primaryKey="false" required="true" type="NVARCHAR" size="30" autoIncrement="false"/>
    13       <column name="COST" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false"/>
    13       <column name="COST" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false"/>
    14       <column name="MA_COSTCENTER_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
    14       <column name="MA_COSTCENTER_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
    15       <column name="COSTUOM" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
    15       <column name="COSTUOM" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
    16       <column name="VALIDFROM" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false"/>
    16       <column name="VALIDFROM" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false"/>
    17       <check name="MA_COSTCENTER_VERSION_ISACTIVE_CHECK" condition="IsActive in ('Y','N')"/> 
       
    18       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_MACOSTCENTER_VERSION">
    17       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_MACOSTCENTER_VERSION">
    19         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
    18         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
    20       </foreign-key>
    19       </foreign-key>
    21       <foreign-key foreignTable="AD_ORG" name="AD_ORG_MACOSTCENTER_VERSION">
    20       <foreign-key foreignTable="AD_ORG" name="AD_ORG_MACOSTCENTER_VERSION">
    22         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
    21         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
    23       </foreign-key>
    22       </foreign-key>
    24       <foreign-key foreignTable="MA_COSTCENTER" name="COSTCENTER_COSTCENTERVERSION">
    23       <foreign-key foreignTable="MA_COSTCENTER" name="COSTCENTER_COSTCENTERVERSION">
    25         <reference local="MA_COSTCENTER_ID" foreign="MA_COSTCENTER_ID"/>
    24         <reference local="MA_COSTCENTER_ID" foreign="MA_COSTCENTER_ID"/>
    26       </foreign-key>
    25       </foreign-key>
       
    26       <check name="MA_COSTCENTER_V_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
    27     </table>
    27     </table>
    28 </database>
    28   </database>