modules/org.openbravo.client.querylist/src-db/database/model/tables/OBCQL_QUERY_COLUMN.xml
changeset 9076 c4f1a5c7d7c2
child 9161 99808e693803
equal deleted inserted replaced
9075:b3ea04de2722 9076:c4f1a5c7d7c2
       
     1 <?xml version="1.0"?>
       
     2   <database name="TABLE OBCQL_QUERY_COLUMN">
       
     3     <table name="OBCQL_QUERY_COLUMN" primaryKey="OBCQL_QUERY_COLUMN_KEY">
       
     4       <column name="OBCQL_QUERY_COLUMN_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
       
     5         <default/>
       
     6         <onCreateDefault/>
       
     7       </column>
       
     8       <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
       
     9         <default/>
       
    10         <onCreateDefault/>
       
    11       </column>
       
    12       <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
       
    13         <default/>
       
    14         <onCreateDefault/>
       
    15       </column>
       
    16       <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
    17         <default><![CDATA[Y]]></default>
       
    18         <onCreateDefault/>
       
    19       </column>
       
    20       <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
       
    21         <default><![CDATA[SYSDATE]]></default>
       
    22         <onCreateDefault/>
       
    23       </column>
       
    24       <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
       
    25         <default/>
       
    26         <onCreateDefault/>
       
    27       </column>
       
    28       <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
       
    29         <default><![CDATA[SYSDATE]]></default>
       
    30         <onCreateDefault/>
       
    31       </column>
       
    32       <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
       
    33         <default/>
       
    34         <onCreateDefault/>
       
    35       </column>
       
    36       <column name="OBCQL_WIDGET_QUERY_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
       
    37         <default/>
       
    38         <onCreateDefault/>
       
    39       </column>
       
    40       <column name="DISPLAY_EXPRESSION" primaryKey="false" required="true" type="VARCHAR" size="255" autoIncrement="false">
       
    41         <default/>
       
    42         <onCreateDefault/>
       
    43       </column>
       
    44       <column name="NAME" primaryKey="false" required="true" type="NVARCHAR" size="60" autoIncrement="false">
       
    45         <default/>
       
    46         <onCreateDefault/>
       
    47       </column>
       
    48       <column name="SUMMARIZE_TYPE" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false">
       
    49         <default/>
       
    50         <onCreateDefault/>
       
    51       </column>
       
    52       <column name="WIDTH" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false">
       
    53         <default/>
       
    54         <onCreateDefault/>
       
    55       </column>
       
    56       <column name="LINK_EXPRESSION" primaryKey="false" required="false" type="VARCHAR" size="255" autoIncrement="false">
       
    57         <default/>
       
    58         <onCreateDefault/>
       
    59       </column>
       
    60       <column name="SEQNO" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false">
       
    61         <default/>
       
    62         <onCreateDefault/>
       
    63       </column>
       
    64       <column name="AD_REFERENCE_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
       
    65         <default/>
       
    66         <onCreateDefault/>
       
    67       </column>
       
    68       <column name="AD_REFERENCE_VALUE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
       
    69         <default/>
       
    70         <onCreateDefault/>
       
    71       </column>
       
    72       <column name="INCLUDE_IN" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
       
    73         <default><![CDATA[W]]></default>
       
    74         <onCreateDefault/>
       
    75       </column>
       
    76       <foreign-key foreignTable="AD_CLIENT" name="OBCQL_QUERY_COLUMN_CLIENT">
       
    77         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       
    78       </foreign-key>
       
    79       <foreign-key foreignTable="AD_ORG" name="OBCQL_QUERY_COLUMN_ORG">
       
    80         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       
    81       </foreign-key>
       
    82       <foreign-key foreignTable="OBCQL_WIDGET_QUERY" name="OBCQL_QUERY_COLUMN_QUERY">
       
    83         <reference local="OBCQL_WIDGET_QUERY_ID" foreign="OBCQL_WIDGET_QUERY_ID"/>
       
    84       </foreign-key>
       
    85       <foreign-key foreignTable="AD_REFERENCE" name="OBCQL_QUERY_COLUMN_REF_VALUE">
       
    86         <reference local="AD_REFERENCE_VALUE_ID" foreign="AD_REFERENCE_ID"/>
       
    87       </foreign-key>
       
    88       <foreign-key foreignTable="AD_REFERENCE" name="OBCQL_QUERY_COLUMN_REFERENCE">
       
    89         <reference local="AD_REFERENCE_ID" foreign="AD_REFERENCE_ID"/>
       
    90       </foreign-key>
       
    91       <check name="OBCQL_QUERY_COLUMN_ACTIVECHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
       
    92     </table>
       
    93   </database>