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



update command options using c off;

-- ===================================================================
--
-- Table tgds_ntf_notification
--
-- Contains information about notification/alerts.
-- ===================================================================

drop table tgds_ntf_notification;
create table tgds_ntf_notification
( 
    ntf_company_id                bigint,
    ntf_id                        bigint,
    ntf_type                      char(1),
    ntf_msg                       varchar(1000),
    ntf_action                    varchar(1000),
    ntf_bo_id                     varchar(100),
    ntf_message_item              varchar(100),
    ntf_bo_type                   varchar(100),
    ntf_source_user_id            bigint,
    ntf_gen_time                  timestamp,
    ntf_action_cause              varchar(100),
    ntf_transaction_id            varchar(100),
    ntf_status                    varchar(100)
) 

in users index in indx;


drop synonym ntf;
create synonym ntf for tgds_ntf_notification;

drop sequence qgds_ntf_id restrict;
create sequence qgds_ntf_id start with 1 increment by 1 nocache;

-- ===================================================================
--
-- Table tgds_rcp_recipient
--
-- Contains recipient list for notifications.
-- ===================================================================

drop table tgds_rcp_recipient;
create table tgds_rcp_recipient
( 
    rcp_company_id                bigint,
    rcp_ntf_id                    bigint,
    rcp_rcp_id                    bigint,
    rcp_rcp_type                  varchar(100),
    rcp_ntf_status                varchar(100)
) 

in users index in indx;


drop synonym rcp;
create synonym rcp for tgds_rcp_recipient;

-- ===================================================================
--
-- Table tgds_npr_preference
--
-- Contains recipient's notification preference information.
-- ===================================================================

drop table tgds_npr_preference;
create table tgds_npr_preference
( 
    npr_company_id                bigint,
    npr_rcp_id                    bigint,
    npr_ntf_mode                  varchar(20),
    npr_alert_required            char(1)
) 

in users index in indx;


drop synonym npr;
create synonym npr for tgds_npr_preference;



commit;

update command options using c on;

terminate;