src-db/database/model/tables/I_INVENTORY.xml
changeset 756 ae11e4610537
parent 735 daced7e311c9
child 1605 8a0fe0193bef
equal deleted inserted replaced
755:16b55e593268 756:ae11e4610537
       
     1 <?xml version="1.0"?>
       
     2   <database name="TABLE I_INVENTORY">
       
     3     <table name="I_INVENTORY" primaryKey="I_INVENTORY_KEY">
       
     4       <column name="I_INVENTORY_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
     5         <default/>
       
     6         <onCreateDefault/>
       
     7       </column>
       
     8       <column name="AD_CLIENT_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
     9         <default/>
       
    10         <onCreateDefault/>
       
    11       </column>
       
    12       <column name="AD_ORG_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
    13         <default/>
       
    14         <onCreateDefault/>
       
    15       </column>
       
    16       <column name="ISACTIVE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
       
    17         <default><![CDATA[Y]]></default>
       
    18         <onCreateDefault/>
       
    19       </column>
       
    20       <column name="CREATED" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
       
    21         <default><![CDATA[SYSDATE]]></default>
       
    22         <onCreateDefault/>
       
    23       </column>
       
    24       <column name="CREATEDBY" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
    25         <default/>
       
    26         <onCreateDefault/>
       
    27       </column>
       
    28       <column name="UPDATED" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
       
    29         <default><![CDATA[SYSDATE]]></default>
       
    30         <onCreateDefault/>
       
    31       </column>
       
    32       <column name="UPDATEDBY" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
    33         <default/>
       
    34         <onCreateDefault/>
       
    35       </column>
       
    36       <column name="PROCESSING" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
       
    37         <default/>
       
    38         <onCreateDefault/>
       
    39       </column>
       
    40       <column name="PROCESSED" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
       
    41         <default><![CDATA[N]]></default>
       
    42         <onCreateDefault/>
       
    43       </column>
       
    44       <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
       
    45         <default/>
       
    46         <onCreateDefault/>
       
    47       </column>
       
    48       <column name="LOT" primaryKey="false" required="false" type="NVARCHAR" size="20" autoIncrement="false">
       
    49         <default/>
       
    50         <onCreateDefault/>
       
    51       </column>
       
    52       <column name="M_INVENTORYLINE_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
    53         <default/>
       
    54         <onCreateDefault/>
       
    55       </column>
       
    56       <column name="M_LOCATOR_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
    57         <default/>
       
    58         <onCreateDefault/>
       
    59       </column>
       
    60       <column name="M_PRODUCT_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
    61         <default/>
       
    62         <onCreateDefault/>
       
    63       </column>
       
    64       <column name="QTYBOOK" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
       
    65         <default><![CDATA[0]]></default>
       
    66         <onCreateDefault/>
       
    67       </column>
       
    68       <column name="QTYCOUNT" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
       
    69         <default><![CDATA[0]]></default>
       
    70         <onCreateDefault/>
       
    71       </column>
       
    72       <column name="SERNO" primaryKey="false" required="false" type="NVARCHAR" size="20" autoIncrement="false">
       
    73         <default/>
       
    74         <onCreateDefault/>
       
    75       </column>
       
    76       <column name="UPC" primaryKey="false" required="false" type="VARCHAR" size="30" autoIncrement="false">
       
    77         <default/>
       
    78         <onCreateDefault/>
       
    79       </column>
       
    80       <column name="VALUE" primaryKey="false" required="false" type="NVARCHAR" size="40" autoIncrement="false">
       
    81         <default/>
       
    82         <onCreateDefault/>
       
    83       </column>
       
    84       <column name="WAREHOUSEVALUE" primaryKey="false" required="false" type="NVARCHAR" size="40" autoIncrement="false">
       
    85         <default/>
       
    86         <onCreateDefault/>
       
    87       </column>
       
    88       <column name="X" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false">
       
    89         <default/>
       
    90         <onCreateDefault/>
       
    91       </column>
       
    92       <column name="Y" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false">
       
    93         <default/>
       
    94         <onCreateDefault/>
       
    95       </column>
       
    96       <column name="Z" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false">
       
    97         <default/>
       
    98         <onCreateDefault/>
       
    99       </column>
       
   100       <column name="LOCATORVALUE" primaryKey="false" required="false" type="NVARCHAR" size="40" autoIncrement="false">
       
   101         <default/>
       
   102         <onCreateDefault/>
       
   103       </column>
       
   104       <column name="I_ERRORMSG" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false">
       
   105         <default/>
       
   106         <onCreateDefault/>
       
   107       </column>
       
   108       <column name="I_ISIMPORTED" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
       
   109         <default><![CDATA[N]]></default>
       
   110         <onCreateDefault/>
       
   111       </column>
       
   112       <column name="M_INVENTORY_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   113         <default/>
       
   114         <onCreateDefault/>
       
   115       </column>
       
   116       <column name="M_WAREHOUSE_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   117         <default/>
       
   118         <onCreateDefault/>
       
   119       </column>
       
   120       <column name="MOVEMENTDATE" primaryKey="false" required="false" type="TIMESTAMP" size="7" autoIncrement="false">
       
   121         <default/>
       
   122         <onCreateDefault/>
       
   123       </column>
       
   124       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_IINVENTORY">
       
   125         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       
   126       </foreign-key>
       
   127       <foreign-key foreignTable="AD_ORG" name="ADORG_IINVENTORY">
       
   128         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       
   129       </foreign-key>
       
   130       <foreign-key foreignTable="M_INVENTORY" name="MINVENTORY_IINVENTORY">
       
   131         <reference local="M_INVENTORY_ID" foreign="M_INVENTORY_ID"/>
       
   132       </foreign-key>
       
   133       <foreign-key foreignTable="M_INVENTORYLINE" name="MINVENTORYLINE_IINVENTORY">
       
   134         <reference local="M_INVENTORYLINE_ID" foreign="M_INVENTORYLINE_ID"/>
       
   135       </foreign-key>
       
   136       <foreign-key foreignTable="M_LOCATOR" name="MLOCATOR_IINVENTORY">
       
   137         <reference local="M_LOCATOR_ID" foreign="M_LOCATOR_ID"/>
       
   138       </foreign-key>
       
   139       <foreign-key foreignTable="M_PRODUCT" name="MPRODUCT_IINVENTORY">
       
   140         <reference local="M_PRODUCT_ID" foreign="M_PRODUCT_ID"/>
       
   141       </foreign-key>
       
   142       <foreign-key foreignTable="M_WAREHOUSE" name="MWAREHOUSE_IINVENTORY">
       
   143         <reference local="M_WAREHOUSE_ID" foreign="M_WAREHOUSE_ID"/>
       
   144       </foreign-key>
       
   145     </table>
       
   146   </database>