src-db/database/model/tables/R_CONTACTINTEREST.xml
author Víctor Martínez Romanos <victor.martinez@openbravo.com>
Mon, 04 Apr 2011 18:43:54 +0200
changeset 11745 af20a33b52a6
permissions -rw-r--r--
Backed out changeset fbc312d1dd59 for making atomic changes
victor@11745
     1
<?xml version="1.0"?>
victor@11745
     2
  <database name="TABLE R_CONTACTINTEREST">
victor@11745
     3
    <table name="R_CONTACTINTEREST" primaryKey="R_CONTACTINTEREST_KEY">
victor@11745
     4
      <column name="R_INTERESTAREA_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
victor@11745
     5
        <default/>
victor@11745
     6
        <onCreateDefault/>
victor@11745
     7
      </column>
victor@11745
     8
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
victor@11745
     9
        <default/>
victor@11745
    10
        <onCreateDefault/>
victor@11745
    11
      </column>
victor@11745
    12
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
victor@11745
    13
        <default/>
victor@11745
    14
        <onCreateDefault/>
victor@11745
    15
      </column>
victor@11745
    16
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
victor@11745
    17
        <default><![CDATA[Y]]></default>
victor@11745
    18
        <onCreateDefault/>
victor@11745
    19
      </column>
victor@11745
    20
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
victor@11745
    21
        <default><![CDATA[SYSDATE]]></default>
victor@11745
    22
        <onCreateDefault/>
victor@11745
    23
      </column>
victor@11745
    24
      <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
victor@11745
    25
        <default/>
victor@11745
    26
        <onCreateDefault/>
victor@11745
    27
      </column>
victor@11745
    28
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
victor@11745
    29
        <default><![CDATA[SYSDATE]]></default>
victor@11745
    30
        <onCreateDefault/>
victor@11745
    31
      </column>
victor@11745
    32
      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
victor@11745
    33
        <default/>
victor@11745
    34
        <onCreateDefault/>
victor@11745
    35
      </column>
victor@11745
    36
      <column name="SUBSCRIBEDATE" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
victor@11745
    37
        <default/>
victor@11745
    38
        <onCreateDefault/>
victor@11745
    39
      </column>
victor@11745
    40
      <column name="OPTOUTDATE" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
victor@11745
    41
        <default/>
victor@11745
    42
        <onCreateDefault/>
victor@11745
    43
      </column>
victor@11745
    44
      <column name="AD_USER_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
victor@11745
    45
        <default/>
victor@11745
    46
        <onCreateDefault/>
victor@11745
    47
      </column>
victor@11745
    48
      <column name="R_CONTACTINTEREST_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
victor@11745
    49
        <default/>
victor@11745
    50
        <onCreateDefault><![CDATA[get_uuid()]]></onCreateDefault>
victor@11745
    51
      </column>
victor@11745
    52
      <foreign-key foreignTable="AD_CLIENT" name="R_CONTACTINTEREST_AD_CLIENT">
victor@11745
    53
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
victor@11745
    54
      </foreign-key>
victor@11745
    55
      <foreign-key foreignTable="AD_ORG" name="R_CONTACTINTEREST_AD_ORG">
victor@11745
    56
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
victor@11745
    57
      </foreign-key>
victor@11745
    58
      <foreign-key foreignTable="AD_USER" name="R_CONTACTINTEREST_AD_USER">
victor@11745
    59
        <reference local="AD_USER_ID" foreign="AD_USER_ID"/>
victor@11745
    60
      </foreign-key>
victor@11745
    61
      <foreign-key foreignTable="R_INTERESTAREA" name="R_CONTACTINTEREST_R_INTERESTAR">
victor@11745
    62
        <reference local="R_INTERESTAREA_ID" foreign="R_INTERESTAREA_ID"/>
victor@11745
    63
      </foreign-key>
victor@11745
    64
      <check name="R_CONTACTINTERE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
victor@11745
    65
    </table>
victor@11745
    66
  </database>