database/model/tables/C_PROJECTPROPOSALLINE.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 C_PROJECTPROPOSALLINE">
     2   <database name="TABLE C_PROJECTPROPOSALLINE">
     3     <table name="C_PROJECTPROPOSALLINE" primaryKey="C_PROJECTPROPOSALLINE_KEY">
     3     <table name="C_PROJECTPROPOSALLINE" primaryKey="C_PROJECTPROPOSALLINE_KEY">
     4       <column name="C_PROJECTPROPOSALLINE_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
     4       <column name="C_PROJECTPROPOSALLINE_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"/>
    16       <column name="PRICE" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false"/>
    16       <column name="PRICE" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false"/>
    17       <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false"/>
    17       <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false"/>
    18       <column name="PRODUCT_DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false"/>
    18       <column name="PRODUCT_DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false"/>
    19       <column name="PRODUCT_NAME" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false"/>
    19       <column name="PRODUCT_NAME" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false"/>
    20       <column name="PRODUCT_VALUE" primaryKey="false" required="false" type="NVARCHAR" size="40" autoIncrement="false"/>
    20       <column name="PRODUCT_VALUE" primaryKey="false" required="false" type="NVARCHAR" size="40" autoIncrement="false"/>
    21       <check name="CPRPROPLN_ISACTIVE_CHECK" condition="IsActive in ('Y','N')"/> 
       
    22       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_C_PROJECTPROPOSALLINE">
    21       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_C_PROJECTPROPOSALLINE">
    23         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
    22         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
    24       </foreign-key>
    23       </foreign-key>
    25       <foreign-key foreignTable="AD_ORG" name="ADORG_C_PROJECTPROPOSALLINE">
    24       <foreign-key foreignTable="AD_ORG" name="ADORG_C_PROJECTPROPOSALLINE">
    26         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
    25         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
    29         <reference local="C_PROJECTPROPOSAL_ID" foreign="C_PROJECTPROPOSAL_ID"/>
    28         <reference local="C_PROJECTPROPOSAL_ID" foreign="C_PROJECTPROPOSAL_ID"/>
    30       </foreign-key>
    29       </foreign-key>
    31       <foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_C_PROJECTPROPOSALLINE">
    30       <foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_C_PROJECTPROPOSALLINE">
    32         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
    31         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
    33       </foreign-key>
    32       </foreign-key>
       
    33       <check name="CPRPROPLN_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
    34     </table>
    34     </table>
    35 </database>
    35   </database>