database/model/tables/C_PROJECTPROPOSALLINE.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 C_PROJECTPROPOSALLINE">
    <table name="C_PROJECTPROPOSALLINE" primaryKey="C_PROJECTPROPOSALLINE_KEY">
      <column name="C_PROJECTPROPOSALLINE_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="C_PROJECTPROPOSAL_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
      <column name="LINENO" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
      <column name="M_PRODUCT_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
      <column name="QTY" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false"/>
      <column name="PRICE" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false"/>
      <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false"/>
      <column name="PRODUCT_DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false"/>
      <column name="PRODUCT_NAME" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false"/>
      <column name="PRODUCT_VALUE" primaryKey="false" required="false" type="NVARCHAR" size="40" autoIncrement="false"/>
      <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_C_PROJECTPROPOSALLINE">
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_ORG" name="ADORG_C_PROJECTPROPOSALLINE">
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
      </foreign-key>
      <foreign-key foreignTable="C_PROJECTPROPOSAL" name="CPROJECTPOSAL_C_PROPOSALLINE">
        <reference local="C_PROJECTPROPOSAL_ID" foreign="C_PROJECTPROPOSAL_ID"/>
      </foreign-key>
      <foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_C_PROJECTPROPOSALLINE">
        <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
      </foreign-key>
      <check name="CPRPROPLN_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
    </table>
  </database>