src-db/database/model/tables/C_ACCTSCHEMA_ELEMENT.xml
author Juan Pablo Aroztegi <juanpablo.aroztegi@openbravo.com>
Wed, 03 Sep 2008 17:55:37 +0000
changeset 1605 8a0fe0193bef
parent 756 ae11e4610537
child 2586 683779f1e610
permissions -rw-r--r--
Merge r2.5x intro trunk
carlos@0
     1
<?xml version="1.0"?>
adrian@94
     2
  <database name="TABLE C_ACCTSCHEMA_ELEMENT">
carlos@0
     3
    <table name="C_ACCTSCHEMA_ELEMENT" primaryKey="C_ACCTSCHEMA_ELEMENT_KEY">
juanpablo@1605
     4
      <column name="C_ACCTSCHEMA_ELEMENT_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
     5
        <default/>
antonio@735
     6
        <onCreateDefault/>
antonio@735
     7
      </column>
antonio@735
     8
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
     9
        <default><![CDATA[Y]]></default>
antonio@735
    10
        <onCreateDefault/>
antonio@735
    11
      </column>
antonio@735
    12
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    13
        <default><![CDATA[SYSDATE]]></default>
antonio@735
    14
        <onCreateDefault/>
antonio@735
    15
      </column>
juanpablo@1605
    16
      <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    17
        <default/>
antonio@735
    18
        <onCreateDefault/>
antonio@735
    19
      </column>
antonio@735
    20
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    21
        <default><![CDATA[SYSDATE]]></default>
antonio@735
    22
        <onCreateDefault/>
antonio@735
    23
      </column>
juanpablo@1605
    24
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    25
        <default/>
antonio@735
    26
        <onCreateDefault/>
antonio@735
    27
      </column>
juanpablo@1605
    28
      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    29
        <default/>
antonio@735
    30
        <onCreateDefault/>
antonio@735
    31
      </column>
juanpablo@1605
    32
      <column name="C_ACCTSCHEMA_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    33
        <default/>
antonio@735
    34
        <onCreateDefault/>
antonio@735
    35
      </column>
antonio@735
    36
      <column name="ELEMENTTYPE" primaryKey="false" required="true" type="CHAR" size="2" autoIncrement="false">
antonio@735
    37
        <default/>
antonio@735
    38
        <onCreateDefault/>
antonio@735
    39
      </column>
antonio@735
    40
      <column name="NAME" primaryKey="false" required="true" type="NVARCHAR" size="60" autoIncrement="false">
antonio@735
    41
        <default/>
antonio@735
    42
        <onCreateDefault/>
antonio@735
    43
      </column>
antonio@735
    44
      <column name="SEQNO" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
antonio@735
    45
        <default/>
antonio@735
    46
        <onCreateDefault/>
antonio@735
    47
      </column>
juanpablo@1605
    48
      <column name="C_ELEMENT_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    49
        <default/>
antonio@735
    50
        <onCreateDefault/>
antonio@735
    51
      </column>
juanpablo@1605
    52
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    53
        <default/>
antonio@735
    54
        <onCreateDefault/>
antonio@735
    55
      </column>
antonio@735
    56
      <column name="ISMANDATORY" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    57
        <default><![CDATA[N]]></default>
antonio@735
    58
        <onCreateDefault/>
antonio@735
    59
      </column>
antonio@735
    60
      <column name="ISBALANCED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    61
        <default><![CDATA[N]]></default>
antonio@735
    62
        <onCreateDefault/>
antonio@735
    63
      </column>
juanpablo@1605
    64
      <column name="ORG_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    65
        <default/>
antonio@735
    66
        <onCreateDefault/>
antonio@735
    67
      </column>
juanpablo@1605
    68
      <column name="C_ELEMENTVALUE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    69
        <default/>
antonio@735
    70
        <onCreateDefault/>
antonio@735
    71
      </column>
juanpablo@1605
    72
      <column name="M_PRODUCT_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    73
        <default/>
antonio@735
    74
        <onCreateDefault/>
antonio@735
    75
      </column>
juanpablo@1605
    76
      <column name="C_BPARTNER_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    77
        <default/>
antonio@735
    78
        <onCreateDefault/>
antonio@735
    79
      </column>
juanpablo@1605
    80
      <column name="C_LOCATION_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    81
        <default/>
antonio@735
    82
        <onCreateDefault/>
antonio@735
    83
      </column>
juanpablo@1605
    84
      <column name="C_SALESREGION_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    85
        <default/>
antonio@735
    86
        <onCreateDefault/>
antonio@735
    87
      </column>
juanpablo@1605
    88
      <column name="C_PROJECT_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    89
        <default/>
antonio@735
    90
        <onCreateDefault/>
antonio@735
    91
      </column>
juanpablo@1605
    92
      <column name="C_CAMPAIGN_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    93
        <default/>
antonio@735
    94
        <onCreateDefault/>
antonio@735
    95
      </column>
juanpablo@1605
    96
      <column name="C_ACTIVITY_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    97
        <default/>
antonio@735
    98
        <onCreateDefault/>
antonio@735
    99
      </column>
carlos@0
   100
      <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_CASCHEMAELEMENT">
carlos@0
   101
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
carlos@0
   102
      </foreign-key>
antonio@410
   103
      <foreign-key foreignTable="AD_ORG" name="ADORG_CASCHEMAELEMENT">
antonio@410
   104
        <reference local="ORG_ID" foreign="AD_ORG_ID"/>
antonio@410
   105
      </foreign-key>
gorkaion@238
   106
      <foreign-key foreignTable="AD_ORG" name="ADORGID_C_ASCHEMAELEMENT">
gorkaion@238
   107
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
gorkaion@238
   108
      </foreign-key>
adrian@94
   109
      <foreign-key foreignTable="C_ACCTSCHEMA" name="CACCTSCHEMA_CASCHEMAELEMENT" onDelete="cascade">
carlos@0
   110
        <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
carlos@0
   111
      </foreign-key>
carlos@0
   112
      <foreign-key foreignTable="C_ACTIVITY" name="CACTIVITY_CACCTSCHEMAELEMENT">
carlos@0
   113
        <reference local="C_ACTIVITY_ID" foreign="C_ACTIVITY_ID"/>
carlos@0
   114
      </foreign-key>
carlos@0
   115
      <foreign-key foreignTable="C_BPARTNER" name="CBUSPARTNER_CASCHEMAELEMENT">
carlos@0
   116
        <reference local="C_BPARTNER_ID" foreign="C_BPARTNER_ID"/>
carlos@0
   117
      </foreign-key>
antonio@410
   118
      <foreign-key foreignTable="C_ELEMENT" name="CELEMENT_CASCHEMAELEMENT">
antonio@410
   119
        <reference local="C_ELEMENT_ID" foreign="C_ELEMENT_ID"/>
antonio@410
   120
      </foreign-key>
gorkaion@238
   121
      <foreign-key foreignTable="C_ELEMENTVALUE" name="CELEMENTVALUE_CASCHEMAELEMENT">
gorkaion@238
   122
        <reference local="C_ELEMENTVALUE_ID" foreign="C_ELEMENTVALUE_ID"/>
gorkaion@238
   123
      </foreign-key>
carlos@0
   124
      <foreign-key foreignTable="C_LOCATION" name="CLOCATION_CASCHEMAELEMENT">
carlos@0
   125
        <reference local="C_LOCATION_ID" foreign="C_LOCATION_ID"/>
carlos@0
   126
      </foreign-key>
carlos@0
   127
      <foreign-key foreignTable="C_PROJECT" name="CPROJECT_CASCHEMAELEMENT">
carlos@0
   128
        <reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
carlos@0
   129
      </foreign-key>
carlos@0
   130
      <foreign-key foreignTable="C_SALESREGION" name="CSALESREGION_CASCHEMAELEMENT">
carlos@0
   131
        <reference local="C_SALESREGION_ID" foreign="C_SALESREGION_ID"/>
carlos@0
   132
      </foreign-key>
carlos@0
   133
      <foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_CASCHEMAELEMENT">
carlos@0
   134
        <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
carlos@0
   135
      </foreign-key>
adrian@170
   136
      <foreign-key foreignTable="C_CAMPAIGN" name="SOCAMPAIGN_CASCHEMAELEMENT">
adrian@170
   137
        <reference local="C_CAMPAIGN_ID" foreign="C_CAMPAIGN_ID"/>
adrian@170
   138
      </foreign-key>
adrian@94
   139
      <index name="C_ACCTSCHEMA_ELEMENT_SCHEMA" unique="false">
carlos@0
   140
        <index-column name="C_ACCTSCHEMA_ID"/>
carlos@0
   141
      </index>
ivan@258
   142
      <check name="CACCTSCHEL_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
ivan@258
   143
      <check name="CACCTSCHEL_ISBALANCED_CHECK"><![CDATA[ISBALANCED IN ('Y', 'N')]]></check>
ivan@258
   144
      <check name="CACCTSCHEL_ISMANDATORY_CHECK"><![CDATA[ISMANDATORY IN ('Y', 'N')]]></check>
carlos@0
   145
    </table>
adrian@94
   146
  </database>