modules/org.openbravo.service.integration.openid/src-db/database/model/tables/OBSOID_USER_IDENTIFIER.xml
author Asier Lostalé <asier.lostale@openbravo.com>
Mon, 12 Aug 2013 09:31:25 +0200
changeset 20971 3993ddeadfe3
parent 13415 f8c24d834286
child 26718 02b3ccc6fd3f
permissions -rw-r--r--
related to issue 20421: Review needed indexes

Added indexes for parent-child tab relationships for all columns that don't
participate in any other index/unique constraint
ivan@13376
     1
<?xml version="1.0"?>
ivan@13376
     2
  <database name="TABLE OBSOID_USER_IDENTIFIER">
ivan@13376
     3
    <table name="OBSOID_USER_IDENTIFIER" primaryKey="OBSOID_USER_OID_KEY">
ivan@13376
     4
      <column name="OBSOID_USER_IDENTIFIER_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
ivan@13376
     5
        <default/>
ivan@13376
     6
        <onCreateDefault/>
ivan@13376
     7
      </column>
ivan@13376
     8
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
ivan@13376
     9
        <default/>
ivan@13376
    10
        <onCreateDefault/>
ivan@13376
    11
      </column>
ivan@13376
    12
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
ivan@13376
    13
        <default/>
ivan@13376
    14
        <onCreateDefault/>
ivan@13376
    15
      </column>
ivan@13376
    16
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
ivan@13376
    17
        <default><![CDATA[Y]]></default>
ivan@13376
    18
        <onCreateDefault/>
ivan@13376
    19
      </column>
ivan@13376
    20
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
ivan@13376
    21
        <default><![CDATA[SYSDATE]]></default>
ivan@13376
    22
        <onCreateDefault/>
ivan@13376
    23
      </column>
ivan@13376
    24
      <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
ivan@13376
    25
        <default/>
ivan@13376
    26
        <onCreateDefault/>
ivan@13376
    27
      </column>
ivan@13376
    28
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
ivan@13376
    29
        <default><![CDATA[SYSDATE]]></default>
ivan@13376
    30
        <onCreateDefault/>
ivan@13376
    31
      </column>
ivan@13376
    32
      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
ivan@13376
    33
        <default/>
ivan@13376
    34
        <onCreateDefault/>
ivan@13376
    35
      </column>
ivan@13376
    36
      <column name="AD_USER_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
ivan@13376
    37
        <default/>
ivan@13376
    38
        <onCreateDefault/>
ivan@13376
    39
      </column>
ivan@13376
    40
      <column name="OPENID_IDENTIFIER" primaryKey="false" required="true" type="VARCHAR" size="255" autoIncrement="false">
ivan@13376
    41
        <default/>
ivan@13376
    42
        <onCreateDefault/>
ivan@13376
    43
      </column>
ivan@13376
    44
      <foreign-key foreignTable="AD_CLIENT" name="OBSOID_USER_OID_AD_CLIENT">
ivan@13376
    45
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
ivan@13376
    46
      </foreign-key>
ivan@13376
    47
      <foreign-key foreignTable="AD_ORG" name="OBSOID_USER_OID_AD_ORG">
ivan@13376
    48
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
ivan@13376
    49
      </foreign-key>
ivan@13376
    50
      <foreign-key foreignTable="AD_USER" name="OBSOID_USER_OID_AD_USER">
ivan@13376
    51
        <reference local="AD_USER_ID" foreign="AD_USER_ID"/>
ivan@13376
    52
      </foreign-key>
asier@20971
    53
      <index name="OBSOID_USERIDENTIFIER_USER_IDX" unique="false">
asier@20971
    54
        <index-column name="AD_USER_ID"/>
asier@20971
    55
      </index>
ivan@13415
    56
      <unique name="OBSOID_UN_IDENTIFIER">
ivan@13415
    57
        <unique-column name="OPENID_IDENTIFIER"/>
ivan@13415
    58
      </unique>
ivan@13376
    59
      <check name="OBSOID_USER_OID_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
ivan@13376
    60
    </table>
ivan@13376
    61
  </database>