database/model/tables/M_RAPPEL_INVOICE.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 M_RAPPEL_INVOICE">
     2   <database name="TABLE M_RAPPEL_INVOICE">
     3     <table name="M_RAPPEL_INVOICE" primaryKey="M_RAPPEL_INVOICE_KEY">
     3     <table name="M_RAPPEL_INVOICE" primaryKey="M_RAPPEL_INVOICE_KEY">
     4       <column name="M_RAPPEL_INVOICE_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
     4       <column name="M_RAPPEL_INVOICE_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"/>
    10       <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="SYSDATE" autoIncrement="false"/>
    10       <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="SYSDATE" autoIncrement="false"/>
    11       <column name="UPDATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
    11       <column name="UPDATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
    12       <column name="M_RAPPEL_BPARTNER_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
    12       <column name="M_RAPPEL_BPARTNER_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
    13       <column name="C_INVOICE_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
    13       <column name="C_INVOICE_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
    14       <column name="SEQNO" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
    14       <column name="SEQNO" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
    15       <check name="M_RAPPEL_INVOICE_ISACTIVE_CHECK" condition="IsActive in ('Y','N')"/> 
       
    16       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_MRAPPELINVOICE">
    15       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_MRAPPELINVOICE">
    17         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
    16         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
    18       </foreign-key>
    17       </foreign-key>
    19       <foreign-key foreignTable="AD_ORG" name="ADORG_MRAPPELINVOICE">
    18       <foreign-key foreignTable="AD_ORG" name="ADORG_MRAPPELINVOICE">
    20         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
    19         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
    23         <reference local="C_INVOICE_ID" foreign="C_INVOICE_ID"/>
    22         <reference local="C_INVOICE_ID" foreign="C_INVOICE_ID"/>
    24       </foreign-key>
    23       </foreign-key>
    25       <foreign-key foreignTable="M_RAPPEL_BPARTNER" name="MRAPPELBPARTNER_M_RAPPEL_INV">
    24       <foreign-key foreignTable="M_RAPPEL_BPARTNER" name="MRAPPELBPARTNER_M_RAPPEL_INV">
    26         <reference local="M_RAPPEL_BPARTNER_ID" foreign="M_RAPPEL_BPARTNER_ID"/>
    25         <reference local="M_RAPPEL_BPARTNER_ID" foreign="M_RAPPEL_BPARTNER_ID"/>
    27       </foreign-key>
    26       </foreign-key>
       
    27       <check name="M_RAPPEL_INVOIC_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
    28     </table>
    28     </table>
    29 </database>
    29   </database>