database/model/tables/AD_USER_ROLES.xml
author Antonio Moreno <antonio.moreno@openbravo.com>
Mon, 11 Feb 2008 14:32:48 +0000
changeset 410 ec5115414c8c
parent 258 a4855f55d8a1
child 735 daced7e311c9
permissions -rw-r--r--
bug fixed: [1858892] The Foreign Keys of these tables have been reordered, future exports will not reorder them
carlos@0
     1
<?xml version="1.0"?>
adrian@94
     2
  <database name="TABLE AD_USER_ROLES">
carlos@0
     3
    <table name="AD_USER_ROLES" primaryKey="AD_USER_ROLE_KEY">
carlos@0
     4
      <column name="AD_USER_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
     5
      <column name="AD_ROLE_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
     6
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
     7
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
     8
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
carlos@0
     9
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="SYSDATE" autoIncrement="false"/>
carlos@0
    10
      <column name="CREATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
carlos@0
    11
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="SYSDATE" autoIncrement="false"/>
carlos@0
    12
      <column name="UPDATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
antonio@410
    13
      <foreign-key foreignTable="AD_CLIENT" name="AD_USERROLESCLIENT">
antonio@410
    14
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
antonio@410
    15
      </foreign-key>
antonio@410
    16
      <foreign-key foreignTable="AD_ORG" name="AD_USERROLESORG">
antonio@410
    17
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
antonio@410
    18
      </foreign-key>
adrian@170
    19
      <foreign-key foreignTable="AD_ROLE" name="ADROLE_ADUSERROLES" onDelete="cascade">
adrian@170
    20
        <reference local="AD_ROLE_ID" foreign="AD_ROLE_ID"/>
adrian@170
    21
      </foreign-key>
gorkaion@238
    22
      <foreign-key foreignTable="AD_USER" name="ADUSER_USERROLES" onDelete="cascade">
gorkaion@238
    23
        <reference local="AD_USER_ID" foreign="AD_USER_ID"/>
gorkaion@238
    24
      </foreign-key>
ivan@258
    25
      <check name="AD_USER_ROLES_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
carlos@0
    26
    </table>
adrian@94
    27
  </database>