<?xml version="1.0"?> <!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database"> <database name="default" defaultIdMethod="none"> <table name="C_PROJECTLINE"> <column name="C_PROJECTLINE_ID" primaryKey="true" required="true" type="ID" size="10" autoIncrement="false"/> <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/> <column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" size="10" 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="CURRENT_TIMESTAMP" autoIncrement="false"/> <column name="CREATEDBY" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/> <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="CURRENT_TIMESTAMP" autoIncrement="false"/> <column name="UPDATEDBY" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/> <column name="C_PROJECT_ID" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/> <column name="LINE" primaryKey="false" required="true" type="DECIMAL" size="10" autoIncrement="false"/> <column name="DESCRIPTION" primaryKey="false" required="false" type="VARCHAR" size="255" autoIncrement="false"/> <column name="PLANNEDQTY" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/> <column name="PLANNEDPRICE" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/> <column name="PLANNEDAMT" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/> <column name="PLANNEDMARGINAMT" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/> <column name="COMMITTEDAMT" primaryKey="false" required="false" type="DECIMAL" default="0" autoIncrement="false"/> <column name="M_PRODUCT_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/> <column name="M_PRODUCT_CATEGORY_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/> <column name="INVOICEDAMT" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/> <column name="INVOICEDQTY" primaryKey="false" required="true" type="DECIMAL" default="0" autoIncrement="false"/> <column name="COMMITTEDQTY" primaryKey="false" required="false" type="DECIMAL" default="0" autoIncrement="false"/> <column name="C_PROJECTISSUE_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/> <column name="C_ORDER_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/> <column name="C_ORDERPO_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/> <column name="ISPRINTED" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/> <column name="PROCESSED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/> <column name="DOPRICING" primaryKey="false" required="false" type="CHAR" size="1" default="Y" autoIncrement="false"/> <column name="C_PROJECTPHASE_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/> <column name="C_PROJECTTASK_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/> <foreign-key foreignTable="C_ORDER" name="CORDERPO_CPROJECTLINE" onDelete="none"> <reference local="C_ORDERPO_ID" foreign="C_ORDER_ID"/> </foreign-key> <foreign-key foreignTable="C_ORDER" name="CORDER_CPROJECTLINE" onDelete="none"> <reference local="C_ORDER_ID" foreign="C_ORDER_ID"/> </foreign-key> <foreign-key foreignTable="C_PROJECT" name="CPROJECT_CPROJECTLINE" onDelete="cascade"> <reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/> </foreign-key> <foreign-key foreignTable="C_PROJECTISSUE" name="CPROJECTISSUE_CPROJECTLINE" onDelete="none"> <reference local="C_PROJECTISSUE_ID" foreign="C_PROJECTISSUE_ID"/> </foreign-key> <foreign-key foreignTable="C_PROJECTPHASE" name="CPROJECTPHASE_CPROJECTLINE" onDelete="setnull"> <reference local="C_PROJECTPHASE_ID" foreign="C_PROJECTPHASE_ID"/> </foreign-key> <foreign-key foreignTable="C_PROJECTTASK" name="CPROJECTTASK_CPROJECTLINE" onDelete="setnull"> <reference local="C_PROJECTTASK_ID" foreign="C_PROJECTTASK_ID"/> </foreign-key> <foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_CPROJECTLINE" onDelete="none"> <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/> </foreign-key> <foreign-key foreignTable="M_PRODUCT_CATEGORY" name="MPRODUCTCAT_CPROJECTLINE" onDelete="none"> <reference local="M_PRODUCT_CATEGORY_ID" foreign="M_PRODUCT_CATEGORY_ID"/> </foreign-key> <check> <rule><![CDATA[IsActive in ('Y','N')]]></rule> </check> </table> </database>