-- IBM Confidential
-- OCO Source Materials
-- 5724-I68.
-- (C) Copyright IBM Corp. 2000, 2004 - All Rights Reserved.
-- US Government Users Restricted Rights - Use, duplication or disclosure 
-- restricted by GSA ADP Schedule Contract with IBM Corp. 
-- This file is generated by GenSchema!! DO NOT EDIT!!!
-- This file is generated by GenSchema!! DO NOT EDIT!!!


-- ===================================================================
--
-- Table ttrx_txn_transaction
--

-- ===================================================================

drop table ttrx_txn_transaction cascade constraints;
create table ttrx_txn_transaction
( 
    txn_company_id                number(9, 0) not null,
    txn_transaction_id            varchar2(100) not null,
    txn_description               varchar2(1000),
    constraint txn_0_pk
        primary key (txn_transaction_id, txn_company_id)
) 
tablespace users;


drop synonym txn;
create synonym txn for ttrx_txn_transaction;

-- ===================================================================
--
-- Table ttrx_txd_transaction_details
--

-- ===================================================================

drop table ttrx_txd_transaction_details cascade constraints;
create table ttrx_txd_transaction_details
( 
    txd_company_id                number(9, 0),
    txd_id                        number(9, 0) not null,
    txd_transaction_id            varchar2(100),
    txd_entry_id                  varchar2(200),
    txd_step_id                   varchar2(100),
    txd_transaction_time          date,
    txd_date_flag                 char(1),
    txd_version_id                varchar2(100),
    txd_workflow_name             varchar2(200),
    txd_step_name                 varchar2(200),
    txd_status                    varchar2(1000),
    txd_user_action               varchar2(100),
    txd_user_id                   number(9,0),
    txd_type                      varchar2(100),
    txd_group_id                  varchar2(100),
    txd_group_type                varchar2(100),
    constraint txd_0_pk
        primary key (txd_id)
) 
tablespace users;


drop synonym txd;
create synonym txd for ttrx_txd_transaction_details;

drop sequence qtrx_txd_id;
create sequence qtrx_txd_id start with 1 increment by 1 nocache;

-- ===================================================================
--
-- Table ttrx_txm_transaction_message
--

-- ===================================================================

drop table ttrx_txm_transaction_message cascade constraints;
create table ttrx_txm_transaction_message
( 
    txm_company_id                number(9, 0),
    txm_txd_id                    number(9, 0),
    txm_transaction_id            varchar2(100),
    txm_message_id                varchar2(100),
    txm_message_description       varchar2(1000),
    txm_message_type              varchar2(100),
    txm_gtin                      varchar2(100),
    txm_gtin_name                 varchar2(100),
    txm_cascade_option            varchar2(100),
    txm_data_pool                 varchar2(200),
    txm_message_status            varchar2(100),
    txm_doc_store_path            varchar2(200),
    txm_message_action            varchar2(100),
    txm_target_market             varchar2(2),
    txm_info_provider             varchar2(100),
    txm_ip_name                   varchar2(200),
    txm_target_gln                varchar2(100),
    txm_object_type               varchar2(100),
    txm_message_source            varchar2(100),
    txm_queue_name                varchar2(100),
    txm_gtin_datapool_cat_id      varchar2(30)
) 
tablespace users;


drop synonym txm;
create synonym txm for ttrx_txm_transaction_message;

-- ===================================================================
--
-- Table ttrx_txi_tradeitem
--

-- ===================================================================

drop table ttrx_txi_tradeitem cascade constraints;
create table ttrx_txi_tradeitem
( 
    txi_company_id                number(9, 0) not null,
    txi_gtin                      varchar2(100) not null,
    txi_gtin_name                 varchar2(200),
    txi_gtin_internal_cat_id      varchar2(100),
    txi_gtin_udex_cat_id          varchar2(100),
    constraint txi_0_pk
        primary key (txi_gtin, txi_company_id)
) 
tablespace users;


drop synonym txi;
create synonym txi for ttrx_txi_tradeitem;

-- ===================================================================
--
-- Table ttrx_txl_tradeitemlink
--

-- ===================================================================

drop table ttrx_txl_tradeitemlink cascade constraints;
create table ttrx_txl_tradeitemlink
( 
    txl_company_id                number(9, 0),
    txl_txd_id                    number(9, 0),
    txl_parent_gtin               varchar2(100),
    txl_child_gtin                varchar2(100),
    txl_response_vo_path          varchar2(1000)
) 
tablespace users;


drop synonym txl;
create synonym txl for ttrx_txl_tradeitemlink;

-- ===================================================================
--
-- Table ttrx_txp_transaction_tp
--

-- ===================================================================

drop table ttrx_txp_transaction_tp cascade constraints;
create table ttrx_txp_transaction_tp
( 
    txp_company_id                number(9, 0),
    txp_txd_id                    number(9, 0),
    txp_gln                       varchar2(100)
) 
tablespace users;


drop synonym txp;
create synonym txp for ttrx_txp_transaction_tp;

-- ===================================================================
--
-- Table ttrx_ttp_tradingpartner
--

-- ===================================================================

drop table ttrx_ttp_tradingpartner cascade constraints;
create table ttrx_ttp_tradingpartner
( 
    ttp_company_id                number(9, 0) not null,
    ttp_gln                       varchar2(100) not null,
    ttp_name                      varchar2(200),
    constraint ttp_0_pk
        primary key (ttp_gln, ttp_company_id)
) 
tablespace users;


drop synonym ttp;
create synonym ttp for ttrx_ttp_tradingpartner;




