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

62 lines
4.3 KiB
XML
Raw Normal View History

2006-12-29 06:10:54 +07:00
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="TIRE_STORAGE">
<column name="TIRE_STORAGE_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" 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" 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" autoIncrement="false"/>
<column name="NAME" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false"/>
<column name="C_BPARTNER_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="REGISTRATION" primaryKey="false" required="false" type="VARCHAR" size="20" autoIncrement="false"/>
<column name="VEHICLE" primaryKey="false" required="false" type="VARCHAR" size="20" autoIncrement="false"/>
<column name="DESCRIPTION" primaryKey="false" required="false" type="VARCHAR" size="255" autoIncrement="false"/>
<column name="TIRETYPE" primaryKey="false" required="false" type="VARCHAR" size="20" autoIncrement="false"/>
<column name="TIRETYPE_B" primaryKey="false" required="false" type="VARCHAR" size="20" autoIncrement="false"/>
<column name="TIRESIZE" primaryKey="false" required="false" type="VARCHAR" size="20" autoIncrement="false"/>
<column name="TIRESIZE_B" primaryKey="false" required="false" type="VARCHAR" size="20" autoIncrement="false"/>
<column name="TIREQUALITY" primaryKey="false" required="false" type="VARCHAR" size="20" autoIncrement="false"/>
<column name="TIREQUALITY_B" primaryKey="false" required="false" type="VARCHAR" size="20" autoIncrement="false"/>
<column name="RIM" primaryKey="false" required="false" type="VARCHAR" size="20" autoIncrement="false"/>
<column name="RIM_B" primaryKey="false" required="false" type="VARCHAR" size="20" autoIncrement="false"/>
<column name="DATERECEIVED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="ISSTORED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="M_LOCATOR_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<column name="REMARK" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
<column name="ISRETURNED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
<column name="DATERETURNED" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false"/>
<column name="AD_USER_ID" primaryKey="false" required="false" type="ID" autoIncrement="false"/>
<foreign-key foreignTable="AD_USER" name="ADUSER_TIRESTORAGE">
<reference local="AD_USER_ID" foreign="AD_USER_ID"/>
</foreign-key>
<foreign-key foreignTable="C_BPARTNER" name="CBPARTNER_TIRESTORAGE">
<reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
</foreign-key>
<foreign-key foreignTable="M_LOCATOR" name="MLOCATOR_TIRESTORAGE">
<reference local="M_LOCATOR_ID" foreign="M_LOCATOR_ID"/>
</foreign-key>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsStored in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsReturned in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsStored in ('Y','N')]]></rule>
</check>
<check>
<rule><![CDATA[IsReturned in ('Y','N')]]></rule>
</check>
</table>
</database>