modules/org.openbravo.client.querylist/src-db/database/model/tables/OBCQL_QUERY_COLUMN_TRL.xml
author Harpreet Singh <harpreet@openbravo.com>
Fri, 10 Dec 2010 19:47:45 +0100
changeset 9076 c4f1a5c7d7c2
child 9078 83442c3580b9
permissions -rw-r--r--
Added 3.0 modules to modules dir and changed the VERSION number
<?xml version="1.0"?>
  <database name="TABLE OBCQL_QUERY_COLUMN_TRL">
    <table name="OBCQL_QUERY_COLUMN_TRL" primaryKey="OBCQL_QUERY_COLUMN_TRL_KEY">
      <column name="OBCQL_QUERY_COLUMN_TRL_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="OBCQL_QUERY_COLUMN_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="AD_LANGUAGE" primaryKey="false" required="true" type="VARCHAR" size="6" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
        <default><![CDATA[Y]]></default>
        <onCreateDefault/>
      </column>
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
        <default><![CDATA[SYSDATE]]></default>
        <onCreateDefault/>
      </column>
      <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
        <default><![CDATA[SYSDATE]]></default>
        <onCreateDefault/>
      </column>
      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="NAME" primaryKey="false" required="true" type="NVARCHAR" size="60" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="ISTRANSLATED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
        <default><![CDATA[N]]></default>
        <onCreateDefault/>
      </column>
      <foreign-key foreignTable="AD_CLIENT" name="OBCQL_QCOLUMNTRL_AD_CLIENT">
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_ORG" name="OBCQL_QCOLUMNTRL_AD_ORG">
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_LANGUAGE" name="OBCQL_QCOLUMNTRL_LANG">
        <reference local="AD_LANGUAGE" foreign="AD_LANGUAGE"/>
      </foreign-key>
      <foreign-key foreignTable="OBCQL_QUERY_COLUMN" name="OBCQL_QCOLUMNTRL_QUERYCOLUMN" onDelete="cascade">
        <reference local="OBCQL_QUERY_COLUMN_ID" foreign="OBCQL_QUERY_COLUMN_ID"/>
      </foreign-key>
      <unique name="OBCQL_QUERY_COLUMN_TRL_LANG_UN">
        <unique-column name="OBCQL_QUERY_COLUMN_ID"/>
        <unique-column name="AD_LANGUAGE"/>
      </unique>
      <check name="OBCQL_QCOLUMNTRL_ACTIVE_CHK"><![CDATA[ISACTIVE     IN ('Y', 'N')]]></check>
      <check name="OBCQL_QCOLUMNTRL_TRANSL_CHK"><![CDATA[ISTRANSLATED IN ('Y', 'N')]]></check>
    </table>
  </database>