modules/org.openbravo.service.datasource/src-db/database/model/tables/OBSERDS_DATASOURCE_FIELD.xml
changeset 9076 c4f1a5c7d7c2
equal deleted inserted replaced
9075:b3ea04de2722 9076:c4f1a5c7d7c2
       
     1 <?xml version="1.0"?>
       
     2   <database name="TABLE OBSERDS_DATASOURCE_FIELD">
       
     3     <table name="OBSERDS_DATASOURCE_FIELD" primaryKey="OBSERDS_DATASOURCE_FIELD_PK">
       
     4       <column name="OBSERDS_DATASOURCE_FIELD_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
       
     5         <default/>
       
     6         <onCreateDefault/>
       
     7       </column>
       
     8       <column name="OBSERDS_DATASOURCE_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
       
     9         <default/>
       
    10         <onCreateDefault/>
       
    11       </column>
       
    12       <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
       
    13         <default/>
       
    14         <onCreateDefault/>
       
    15       </column>
       
    16       <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
       
    17         <default/>
       
    18         <onCreateDefault/>
       
    19       </column>
       
    20       <column name="NAME" primaryKey="false" required="true" type="NVARCHAR" size="60" autoIncrement="false">
       
    21         <default/>
       
    22         <onCreateDefault/>
       
    23       </column>
       
    24       <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
       
    25         <default/>
       
    26         <onCreateDefault/>
       
    27       </column>
       
    28       <column name="AD_REFERENCE_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
       
    29         <default/>
       
    30         <onCreateDefault/>
       
    31       </column>
       
    32       <column name="AD_TABLE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
       
    33         <default/>
       
    34         <onCreateDefault/>
       
    35       </column>
       
    36       <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
    37         <default><![CDATA[Y]]></default>
       
    38         <onCreateDefault/>
       
    39       </column>
       
    40       <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
       
    41         <default><![CDATA[SYSDATE]]></default>
       
    42         <onCreateDefault/>
       
    43       </column>
       
    44       <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
       
    45         <default/>
       
    46         <onCreateDefault/>
       
    47       </column>
       
    48       <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
       
    49         <default><![CDATA[SYSDATE]]></default>
       
    50         <onCreateDefault/>
       
    51       </column>
       
    52       <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
       
    53         <default/>
       
    54         <onCreateDefault/>
       
    55       </column>
       
    56       <foreign-key foreignTable="AD_CLIENT" name="OBSERDS_DSF_AD_CLIENT">
       
    57         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       
    58       </foreign-key>
       
    59       <foreign-key foreignTable="AD_ORG" name="OBSERDS_DSF_AD_ORG">
       
    60         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       
    61       </foreign-key>
       
    62       <foreign-key foreignTable="AD_REFERENCE" name="OBSERDS_DSF_AD_REF">
       
    63         <reference local="AD_REFERENCE_ID" foreign="AD_REFERENCE_ID"/>
       
    64       </foreign-key>
       
    65       <foreign-key foreignTable="AD_TABLE" name="OBSERDS_DSF_AD_TABLE">
       
    66         <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
       
    67       </foreign-key>
       
    68       <foreign-key foreignTable="OBSERDS_DATASOURCE" name="OBSERDS_DSF_DS" onDelete="cascade">
       
    69         <reference local="OBSERDS_DATASOURCE_ID" foreign="OBSERDS_DATASOURCE_ID"/>
       
    70       </foreign-key>
       
    71       <unique name="OBSERDS_DATASOURCE_FIELD_NAME">
       
    72         <unique-column name="OBSERDS_DATASOURCE_ID"/>
       
    73         <unique-column name="NAME"/>
       
    74       </unique>
       
    75       <check name="OBSERDS_DSF_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
       
    76     </table>
       
    77   </database>