-- 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 tque_mqu_queue
--

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

drop table tque_mqu_queue cascade constraints;
create table tque_mqu_queue
( 
    mqu_queue_id                  number(9, 0) not null,
    mqu_cmp_id                    number(9, 0),
    mqu_name                      varchar2(100) not null,
    mqu_desc                      varchar2(2000),
    mqu_protocol                  varchar2(50),
    mqu_sync_script_path          varchar2(2000),
    constraint mqu_0_pk
        primary key (mqu_queue_id),
    constraint mqu_1_uk
        unique (mqu_name)
) 
tablespace users;


drop synonym mqu;
create synonym mqu for tque_mqu_queue;

drop sequence qque_mqu_queue_id;
create sequence qque_mqu_queue_id start with 1 increment by 200 nocache;

-- ===================================================================
--
-- Table tque_msg_message
--

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

drop table tque_msg_message cascade constraints;
create table tque_msg_message
( 
    msg_msg_id                    number(9, 0) not null,
    msg_cmp_id                    number(9, 0),
    msg_user_id                   number(9, 0),
    msg_queue_id                  number(9, 0),
    msg_processable               varchar2(20),
    msg_status                    varchar2(40),
    msg_doc_path                  varchar2(1000),
    msg_protocol_rsp_path         varchar2(1000),
    msg_app_rsp_path              varchar2(1000),
    msg_arrival_time              date,
    msg_arrival_info              varchar2(100),
    msg_send_pickup_time          date,
    msg_sync_completion_time      date,
    msg_sync_status_type          varchar2(20),
    msg_sync_status               varchar2(2000),
    constraint msg_0_pk
        primary key (msg_msg_id)
) 
tablespace users;


drop synonym msg;
create synonym msg for tque_msg_message;

drop sequence qque_msg_msg_id;
create sequence qque_msg_msg_id start with 1 increment by 200 nocache;

-- ===================================================================
--
-- Table tque_msd_message_definition
--

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

drop table tque_msd_message_definition cascade constraints;
create table tque_msd_message_definition
( 
    msd_type_id                   number(9, 0),
    msd_cmp_id                    number(9, 0),
    msd_message_type              varchar2(256)
) 
tablespace users;


drop synonym msd;
create synonym msd for tque_msd_message_definition;

drop sequence qque_msd_type_id;
create sequence qque_msd_type_id start with 1 increment by 200 nocache;

-- ===================================================================
--
-- Table tque_mtd_queue_msg_type_detail
--

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

drop table tque_mtd_queue_msg_type_detail cascade constraints;
create table tque_mtd_queue_msg_type_detail
( 
    mtd_type_id                   number(9, 0),
    mtd_cmp_id                    number(9, 0),
    mtd_attr_name                 varchar2(256),
    mtd_value                     varchar2(3000)
) 
tablespace users;


drop synonym mtd;
create synonym mtd for tque_mtd_queue_msg_type_detail;

-- ===================================================================
--
-- Table tque_qmm_queue_message_map
--

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

drop table tque_qmm_queue_message_map cascade constraints;
create table tque_qmm_queue_message_map
( 
    qmm_queue_id                  number(9, 0),
    qmm_msg_type_id               number(9, 0)
) 
tablespace users;


drop synonym qmm;
create synonym qmm for tque_qmm_queue_message_map;

-- ===================================================================
--
-- Table tque_qtm_que_type_message_map
--

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

drop table tque_qtm_que_type_message_map cascade constraints;
create table tque_qtm_que_type_message_map
( 
    qtm_queue_type                varchar2(256),
    qtm_msg_type_id               number(9, 0)
) 
tablespace users;


drop synonym qtm;
create synonym qtm for tque_qtm_que_type_message_map;




