core-jgi/db/ddlutils/model/I_BPARTNER.xml

81 lines
6.8 KiB
XML
Raw Normal View History

2006-12-29 05:56:28 +07:00
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="I_BPARTNER">
<column name="I_BPARTNER_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="ISACTIVE" primaryKey="false" required="false" type="CHAR" size="1" default="Y" autoIncrement="false"/>
<column name="CREATED" primaryKey="false" required="false" type="TIMESTAMP" size="7" default="CURRENT_TIMESTAMP" autoIncrement="false"/>
<column name="CREATEDBY" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="UPDATED" primaryKey="false" required="false" type="TIMESTAMP" size="7" default="CURRENT_TIMESTAMP" autoIncrement="false"/>
<column name="UPDATEDBY" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="I_ISIMPORTED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="I_ERRORMSG" primaryKey="false" required="false" type="VARCHAR" size="2000" autoIncrement="false"/>
<column name="C_BPARTNER_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="VALUE" primaryKey="false" required="false" type="VARCHAR" size="40" autoIncrement="false"/>
<column name="NAME" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
<column name="NAME2" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
<column name="DESCRIPTION" primaryKey="false" required="false" type="VARCHAR" size="255" autoIncrement="false"/>
<column name="DUNS" primaryKey="false" required="false" type="CHAR" size="11" autoIncrement="false"/>
<column name="TAXID" primaryKey="false" required="false" type="VARCHAR" size="20" autoIncrement="false"/>
<column name="NAICS" primaryKey="false" required="false" type="CHAR" size="6" autoIncrement="false"/>
<column name="GROUPVALUE" primaryKey="false" required="false" type="VARCHAR" size="40" autoIncrement="false"/>
<column name="C_BP_GROUP_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="C_BPARTNER_LOCATION_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="ADDRESS1" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
<column name="ADDRESS2" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
<column name="POSTAL" primaryKey="false" required="false" type="VARCHAR" size="10" autoIncrement="false"/>
<column name="POSTAL_ADD" primaryKey="false" required="false" type="VARCHAR" size="10" autoIncrement="false"/>
<column name="CITY" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
<column name="C_REGION_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="REGIONNAME" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
<column name="C_COUNTRY_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="COUNTRYCODE" primaryKey="false" required="false" type="CHAR" size="2" autoIncrement="false"/>
<column name="TITLE" primaryKey="false" required="false" type="VARCHAR" size="40" autoIncrement="false"/>
<column name="CONTACTNAME" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
<column name="CONTACTDESCRIPTION" primaryKey="false" required="false" type="VARCHAR" size="255" autoIncrement="false"/>
<column name="COMMENTS" primaryKey="false" required="false" type="VARCHAR" size="2000" autoIncrement="false"/>
<column name="PHONE" primaryKey="false" required="false" type="VARCHAR" size="40" autoIncrement="false"/>
<column name="PHONE2" primaryKey="false" required="false" type="VARCHAR" size="40" autoIncrement="false"/>
<column name="FAX" primaryKey="false" required="false" type="VARCHAR" size="40" autoIncrement="false"/>
<column name="EMAIL" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
<column name="PASSWORD" primaryKey="false" required="false" type="VARCHAR" size="20" autoIncrement="false"/>
<column name="BIRTHDAY" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="C_GREETING_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="BPCONTACTGREETING" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
<column name="PROCESSING" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
<column name="PROCESSED" primaryKey="false" required="false" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="AD_USER_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="R_INTERESTAREA_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="INTERESTAREANAME" primaryKey="false" required="false" type="VARCHAR" size="40" autoIncrement="false"/>
<foreign-key foreignTable="AD_USER" name="ADUSER_IBPARTNER">
<reference local="AD_USER_ID" foreign="AD_USER_ID"/>
</foreign-key>
<foreign-key foreignTable="C_BPARTNER" name="CBPARTNER_IBPARTNER">
<reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
</foreign-key>
<foreign-key foreignTable="C_BPARTNER_LOCATION" name="CBPARTNERLOCATION_IBPARTNER">
<reference local="C_BPARTNER_LOCATION_ID" foreign="C_BPARTNER_LOCATION_ID"/>
</foreign-key>
<foreign-key foreignTable="C_BP_GROUP" name="CBPGROUP_IBPARTNER">
<reference local="C_BP_GROUP_ID" foreign="C_BP_GROUP_ID"/>
</foreign-key>
<foreign-key foreignTable="C_COUNTRY" name="CCOUNTRY_IPARTNER">
<reference local="C_COUNTRY_ID" foreign="C_COUNTRY_ID"/>
</foreign-key>
<foreign-key foreignTable="C_GREETING" name="CGREETING_IBPARTNER">
<reference local="C_GREETING_ID" foreign="C_GREETING_ID"/>
</foreign-key>
<foreign-key foreignTable="C_REGION" name="CREGION_IBPARTNER">
<reference local="C_REGION_ID" foreign="C_REGION_ID"/>
</foreign-key>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[Processed in ('Y','N')]]></rule>
</check>
</table>
</database>