Data Collection and Analysis

From Digital Square
Jump to: navigation, search

This page collects auxiliary resources for the Digital Square Request for Application 2018-048.

Teleconference

Live Q&A teleconference details are:

Resources


Database Schema

CREATE SCHEMA 'USAIDBIA_DW';

USE USAIDBIA_DW;

--
-- ER/Studio Data Architect SQL Code Generation
-- Project :      USAID Logical Reference Model
--
-- Date Created : Tuesday, December 11, 2018 11:07:17
-- Target DBMS : Generic DBMS
--

-- 
-- TABLE: ADDITIONALTRADEITEMCLASSIFICATION 
--

CREATE TABLE ADDITIONALTRADEITEMCLASSIFICATION(
    ADDITIONALTRADEITEMCLASSIFICATION_ID           INTEGER        NOT NULL,
    TRADE_ITM_ID                                   INTEGER        NOT NULL,
    ADDITIONALTRADEITEMCLASSIFICATION_SEQNUM       SMALLINT       NOT NULL,
    additionalTradeItemClassificationSystemCode    VARCHAR(80)    NOT NULL,
    additionalTradeItemClassificationCodeValue     VARCHAR(80)    NOT NULL,
    PRIMARY KEY (ADDITIONALTRADEITEMCLASSIFICATION_ID)
)
;



-- 
-- TABLE: ADDITIONALTRADEITEMDESCRIPTION 
--

CREATE TABLE ADDITIONALTRADEITEMDESCRIPTION(
    ADDITIONALTRADEITEMDESCRIPTION_ID        INTEGER         NOT NULL,
    TRADE_ITM_ID                             INTEGER         NOT NULL,
    ADDITIONALTRADEITEMDESCRIPTION_SEQNUM    SMALLINT        NOT NULL,
    additionalTradeItemDescription           VARCHAR(500)    NOT NULL,
    PRIMARY KEY (ADDITIONALTRADEITEMDESCRIPTION_ID)
)
;



-- 
-- TABLE: ADDITIONALTRADEITEMIDENTIFICATION 
--

CREATE TABLE ADDITIONALTRADEITEMIDENTIFICATION(
    ADDITIONALTRADEITEMIDENTIFICATION_ID         INTEGER        NOT NULL,
    TRADE_ITM_ID                                 INTEGER        NOT NULL,
    ADDITIONALTRADEITEMIDENTIFICATION_SEQNUM     SMALLINT       NOT NULL,
    ADDITIONALTRADEITEMIDENTIFICATION            VARCHAR(80)    NOT NULL,
    ADDITIONALTRADEITEMIDENTIFICATIONTYPECODE    VARCHAR(80)    NOT NULL,
    PRIMARY KEY (ADDITIONALTRADEITEMIDENTIFICATION_ID)
)
;



-- 
-- TABLE: ADMNSTRTV_GGRPHY 
--

CREATE TABLE ADMNSTRTV_GGRPHY(
    ADMNSTRTV_GGRPHY_ID           INTEGER        NOT NULL,
    CNTRY_ID                      INTEGER        NOT NULL,
    ADMNSTRTV_GGRPHY_NM           VARCHAR(50)    NOT NULL,
    ADMNSTRTV_GGRPHY_DESC         VARCHAR(50)    NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_1_TTL    VARCHAR(50)    NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_2_TTL    VARCHAR(50)    NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_3_TTL    VARCHAR(50)    NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_4_TTL    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (ADMNSTRTV_GGRPHY_ID)
)
;



-- 
-- TABLE: ADMNSTRTV_GGRPHY_LVL 
--

CREATE TABLE ADMNSTRTV_GGRPHY_LVL(
    ADMNSTRTV_GGRPHY_LVL_ID      INTEGER        NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_NM      VARCHAR(50)    NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_NUM     SMALLINT       NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (ADMNSTRTV_GGRPHY_LVL_ID)
)
;



-- 
-- TABLE: ADMNSTRTV_GGRPHY_LVL_1 
--

CREATE TABLE ADMNSTRTV_GGRPHY_LVL_1(
    ADMNSTRTV_GGRPHY_LVL_1_ID      INTEGER        NOT NULL,
    ADMNSTRTV_GGRPHY_ID            INTEGER        NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_ID        INTEGER        NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_1_CD      VARCHAR(10)    NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_1_NM      VARCHAR(50)    NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_1_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (ADMNSTRTV_GGRPHY_LVL_1_ID)
)
;



-- 
-- TABLE: ADMNSTRTV_GGRPHY_LVL_2 
--

CREATE TABLE ADMNSTRTV_GGRPHY_LVL_2(
    ADMNSTRTV_GGRPHY_LVL_2_ID      INTEGER        NOT NULL,
    ADMNSTRTV_GGRPHY_ID            INTEGER        NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_ID        INTEGER        NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_1_ID      INTEGER        NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_2_CD      VARCHAR(10)    NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_2_NM      VARCHAR(50)    NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_2_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (ADMNSTRTV_GGRPHY_LVL_2_ID)
)
;



-- 
-- TABLE: ADMNSTRTV_GGRPHY_LVL_3 
--

CREATE TABLE ADMNSTRTV_GGRPHY_LVL_3(
    ADMNSTRTV_GGRPHY_LVL_3_ID      INTEGER        NOT NULL,
    ADMNSTRTV_GGRPHY_ID            INTEGER        NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_ID        INTEGER        NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_2_ID      INTEGER        NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_3_CD      VARCHAR(10)    NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_3_NM      VARCHAR(50)    NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_3_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (ADMNSTRTV_GGRPHY_LVL_3_ID)
)
;



-- 
-- TABLE: ADMNSTRTV_GGRPHY_LVL_4 
--

CREATE TABLE ADMNSTRTV_GGRPHY_LVL_4(
    ADMNSTRTV_GGRPHY_LVL_4_ID      INTEGER        NOT NULL,
    ADMNSTRTV_GGRPHY_ID            INTEGER        NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_ID        INTEGER        NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_3_ID      INTEGER        NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_4_CD      VARCHAR(10)    NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_4_NM      VARCHAR(50)    NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_4_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (ADMNSTRTV_GGRPHY_LVL_4_ID)
)
;



-- 
-- TABLE: ANTIMLRL_ACTV_INGRDNT 
--

CREATE TABLE ANTIMLRL_ACTV_INGRDNT(
    ANTIMLRL_ACTV_INGRDNT_ID      INTEGER        NOT NULL,
    ANTIMLRL_ACTV_INGRDNT_NM      VARCHAR(50)    NOT NULL,
    ANTIMLRL_ACTV_INGRDNT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (ANTIMLRL_ACTV_INGRDNT_ID)
)
;



-- 
-- TABLE: ANTIMLRL_PRDCT_TYP 
--

CREATE TABLE ANTIMLRL_PRDCT_TYP(
    ANTIMLRL_PRDCT_TYP_ID      INTEGER        NOT NULL,
    ANTIMLRL_PRDCT_TYP_NM      VARCHAR(50)    NOT NULL,
    ANTIMLRL_PRDCT_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (ANTIMLRL_PRDCT_TYP_ID)
)
;



-- 
-- TABLE: AWP_RPRT_FC 
--

CREATE TABLE AWP_RPRT_FC(
    AWP_RPRT_FC_ID                     INTEGER           NOT NULL,
    HLTH_ELMNT_ID                      INTEGER           NOT NULL,
    TSKORDR_ID                         INTEGER           NOT NULL,
    FNNCL_RPRT_CTGRY_ID                INTEGER           NOT NULL,
    FNNCL_RPRT_CTGRY_LVL_ID            INTEGER           NOT NULL,
    FNNCL_RPRT_ACTVTY_TYP_ID           INTEGER           NOT NULL,
    CNTRCT_AWD_ID                      INTEGER           NOT NULL,
    PRIME_IMPLMNTNG_PRTNR_ID           INTEGER           NOT NULL,
    SUB_IMPLMNTNG_PRTNR_ID             INTEGER,
    CNTRY_ID                           INTEGER           NOT NULL,
    STAFF_LCTN_CNTRY_ID                INTEGER           NOT NULL,
    USAID_MISSN_ID                     INTEGER           NOT NULL,
    FNNCL_RPRT_CHRG_LCTN_ID            INTEGER           NOT NULL,
    FNNCL_RPRT_SBMSSN_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    FNNCL_RPRT_EFF_DT_SRD_DAY_ID       INTEGER           NOT NULL,
    FNNCL_RPRT_PRD_SRD_FY_ID           INTEGER           NOT NULL,
    FNNCL_RPRT_TCHNCL_SUBCAT_ID        INTEGER           NOT NULL,
    FNNCL_RPRT_TCHNCL_SUBSUBCAT_ID     INTEGER           NOT NULL,
    FNNCL_RPRT_VER_NUM                 SMALLINT          NOT NULL,
    BDGTD_AMT                          DECIMAL(12, 3)    NOT NULL,
    AGG_PRSN_DAYS                      DECIMAL(12, 5)    NOT NULL,
    PRIMARY KEY (AWP_RPRT_FC_ID)
)
;

-- 
-- TABLE: BI_USER 
--

CREATE TABLE BI_USER(
    BI_USER_ID            INTEGER         NOT NULL,
    BI_ORG_ID             INTEGER         NOT NULL,
    BI_USER_ACCT_NM       VARCHAR(255)    NOT NULL,
    BI_USER_FLLNM         VARCHAR(50)     NOT NULL,
    BI_USER_EML           VARCHAR(255)    NOT NULL,
    BI_USER_DESC          VARCHAR(50)     NOT NULL,
    IS_MSTR_USER_YNFLG    CHAR(1)         NOT NULL,
    PRIMARY KEY (BI_USER_ID)
)
;


-- 
-- TABLE: CARE_INSTRCTN_TYP 
--

CREATE TABLE CARE_INSTRCTN_TYP(
    CARE_INSTRCTN_TYP_ID      INTEGER        NOT NULL,
    CARE_INSTRCTN_TYP_NM      VARCHAR(50)    NOT NULL,
    CARE_INSTRCTN_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (CARE_INSTRCTN_TYP_ID)
)
;



-- 
-- TABLE: CHEMICALPROPERTYTYPEBIOHAZARD 
--

CREATE TABLE CHEMICALPROPERTYTYPEBIOHAZARD(
    CHEMICALPROPERTYTYPEBIOHAZARD_ID        INTEGER        NOT NULL,
    CHEMICALPROPERTYTYPEBIOHAZARD_SEQNUM    SMALLINT       NOT NULL,
    CHEMICALPROPERTYTYPEBIOHAZARD           VARCHAR(80)    NOT NULL,
    PRIMARY KEY (CHEMICALPROPERTYTYPEBIOHAZARD_ID)
)
;



-- 
-- TABLE: CMS 
--

CREATE TABLE CMS(
    CMS_ID      INTEGER        NOT NULL,
    CNTRY_ID    INTEGER        NOT NULL,
    CMS_NM      VARCHAR(50)    NOT NULL,
    CMS_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (CMS_ID)
)
;



-- 
-- TABLE: CNCRT_PRDCT 
--

CREATE TABLE CNCRT_PRDCT(
    CNCRT_PRDCT    CHAR(10)    NOT NULL,
    MFR_ID         INTEGER     NOT NULL,
    SPPLR_ID       INTEGER     NOT NULL,
    GTIN           CHAR(10),
    SKU            CHAR(10),
    OTHR_STFF      CHAR(10),
    PRIMARY KEY (CNCRT_PRDCT)
)
;



-- 
-- TABLE: CNDM_PRDCT_CLR 
--

CREATE TABLE CNDM_PRDCT_CLR(
    CNDM_PRDCT_CLR_ID         INTEGER        NOT NULL,
    CNDM_PRDCT_CLR_NM         VARCHAR(50)    NOT NULL,
    CNDM_PRDCT_CLR_DESC       VARCHAR(50)    NOT NULL,
    CNDM_PRDCT_CLR_PNTN_NM    VARCHAR(50)    NOT NULL,
    CNDM_PRDCT_CLR_PNTN_CD    VARCHAR(20)    NOT NULL,
    PRIMARY KEY (CNDM_PRDCT_CLR_ID)
)
;



-- 
-- TABLE: CNDM_PRDCT_FLVR 
--

CREATE TABLE CNDM_PRDCT_FLVR(
    CNDM_PRDCT_FLVR_ID      INTEGER        NOT NULL,
    CNDM_PRDCT_FLVR_NM      VARCHAR(50)    NOT NULL,
    CNDM_PRDCT_FLVR_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (CNDM_PRDCT_FLVR_ID)
)
;



-- 
-- TABLE: CNDM_PRDCT_MTRL 
--

CREATE TABLE CNDM_PRDCT_MTRL(
    CNDM_PRDCT_MTRL_ID      INTEGER        NOT NULL,
    CNDM_PRDCT_MTRL_NM      VARCHAR(50)    NOT NULL,
    CNDM_PRDCT_MTRL_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (CNDM_PRDCT_MTRL_ID)
)
;



-- 
-- TABLE: CNDM_PRDCT_NVLTY_TYP 
--

CREATE TABLE CNDM_PRDCT_NVLTY_TYP(
    CNDM_PRDCT_NVLTY_TYP_ID      INTEGER        NOT NULL,
    CNDM_PRDCT_NVLTY_TYP_NM      VARCHAR(50)    NOT NULL,
    CNDM_PRDCT_NVLTY_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (CNDM_PRDCT_NVLTY_TYP_ID)
)
;



-- 
-- TABLE: CNDM_PRDCT_SCNT 
--

CREATE TABLE CNDM_PRDCT_SCNT(
    CNDM_PRDCT_SCNT_ID      INTEGER        NOT NULL,
    CNDM_PRDCT_SCNT_NM      VARCHAR(50)    NOT NULL,
    CNDM_PRDCT_SCNT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (CNDM_PRDCT_SCNT_ID)
)
;



-- 
-- TABLE: CNDM_PRDCT_SZ 
--

CREATE TABLE CNDM_PRDCT_SZ(
    CNDM_PRDCT_SZ_ID      INTEGER        NOT NULL,
    CNDM_PRDCT_SZ_NM      VARCHAR(50)    NOT NULL,
    CNDM_PRDCT_SZ_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (CNDM_PRDCT_SZ_ID)
)
;



-- 
-- TABLE: CNDM_PRDCT_TXTR 
--

CREATE TABLE CNDM_PRDCT_TXTR(
    CNDM_PRDCT_TXTR_ID      INTEGER        NOT NULL,
    CNDM_PRDCT_TXTR_NM      VARCHAR(50)    NOT NULL,
    CNDM_PRDCT_TXTR_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (CNDM_PRDCT_TXTR_ID)
)
;



-- 
-- TABLE: CNSGNE 
--

CREATE TABLE CNSGNE(
    CNSGNE_ID      INTEGER         NOT NULL,
    CNSGNE_NM      VARCHAR(400)    NOT NULL,
    CNSGNE_DESC    VARCHAR(400)    NOT NULL,
    PRIMARY KEY (CNSGNE_ID)
)
;



-- 
-- TABLE: CNTRCT_AWD 
--

CREATE TABLE CNTRCT_AWD(
    CNTRCT_AWD_ID         INTEGER        NOT NULL,
    IMPLMNTNG_PRTNR_ID    INTEGER        NOT NULL,
    CNTRCT_AWD_TYP_ID     INTEGER        NOT NULL,
    AGRMNT_NUM            VARCHAR(50)    NOT NULL,
    PRJCT_NUM             VARCHAR(50)    NOT NULL,
    PRIMARY KEY (CNTRCT_AWD_ID)
)
;



-- 
-- TABLE: CNTRCT_AWD_GGRPHC_SCP 
--

CREATE TABLE CNTRCT_AWD_GGRPHC_SCP(
    CNTRCT_AWD_GGRPHC_SCP_ID      INTEGER        NOT NULL,
    CNTRCT_AWD_GGRPHC_SCP_NM      VARCHAR(50)    NOT NULL,
    CNTRCT_AWD_GGRPHC_SCP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (CNTRCT_AWD_GGRPHC_SCP_ID)
)
;



-- 
-- TABLE: CNTRCT_AWD_TYP 
--

CREATE TABLE CNTRCT_AWD_TYP(
    CNTRCT_AWD_TYP_ID      INTEGER        NOT NULL,
    CNTRCT_AWD_TYP_NM      VARCHAR(50)    NOT NULL,
    CNTRCT_AWD_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (CNTRCT_AWD_TYP_ID)
)
;



-- 
-- TABLE: CNTRY 
--

CREATE TABLE CNTRY(
    CNTRY_ID                INTEGER           NOT NULL,
    CNTRY_NM                VARCHAR(150)      NOT NULL,
    ESRI_CNTRY_NM           VARCHAR(150)      NOT NULL,
    MSTR_CNTRY_NM           VARCHAR(150)      NOT NULL,
    CNTRY_LAT               DECIMAL(11, 8),
    CNTRY_LNG               DECIMAL(11, 8),
    ISO_ALPHA_2_CNTRY_CD    VARCHAR(2),
    ISO_ALPHA_3_CNTRY_CD    VARCHAR(3),
    ISO_NMRC_3_CNTRY_CD     VARCHAR(3),
    PRIMARY KEY (CNTRY_ID)
)
;



-- 
-- TABLE: CNTRY_CNSMPTN_FCAST_FC 
--

CREATE TABLE CNTRY_CNSMPTN_FCAST_FC(
    CNTRY_CNSMPTN_FCAST_FC_ID        INTEGER           NOT NULL,
    CNTRY_ID                         INTEGER           NOT NULL,
    CNTRY_PRGRM_ID                   INTEGER           NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID    INTEGER           NOT NULL,
    RPRT_PRD_TYP_ID                  INTEGER           NOT NULL,
    FCAST_BEGIN_SRD_MTH_ID           INTEGER           NOT NULL,
    FCAST_END_SRD_MTH_ID             INTEGER           NOT NULL,
    FCAST_SBMSSN_DT_SRD_DAY_ID       INTEGER           NOT NULL,
    FCAST_PRD_END_DT_SRD_DAY_ID      INTEGER           NOT NULL,
    FCAST_CNSMPTN_QTY                DECIMAL(15, 2)    NOT NULL,
    PRIMARY KEY (CNTRY_CNSMPTN_FCAST_FC_ID)
)
;



-- 
-- TABLE: CNTRY_LGSTCS_RPRT_FC 
--

CREATE TABLE CNTRY_LGSTCS_RPRT_FC(
    CNTRY_LGSTCS_RPRT_FC_ID          INTEGER           NOT NULL,
    CNTRY_ID                         INTEGER           NOT NULL,
    CNTRY_PRGRM_ID                   INTEGER           NOT NULL,
    FROM_ST_LGSTCS_LCTN_ID           INTEGER           NOT NULL,
    TO_ST_LGSTCS_LCTN_ID             INTEGER           NOT NULL,
    OBSERVED_ST_LGSTCS_LCTN_ID       INTEGER           NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID    INTEGER           NOT NULL,
    TRANS_DT_SRD_DAY_ID              INTEGER           NOT NULL,
    OBSRVTN_DT_SRD_DAY_ID            INTEGER           NOT NULL,
    TRANS_PRDCT_QTY                  DECIMAL(15, 2)    NOT NULL,
    SOH_PRDCT_QTY                    DECIMAL(15, 2)    NOT NULL,
    PRIMARY KEY (CNTRY_LGSTCS_RPRT_FC_ID)
)
;



-- 
-- TABLE: CNTRY_PRCRMNT_BUREAU 
--

CREATE TABLE CNTRY_PRCRMNT_BUREAU(
    CNTRY_PRCRMNT_BUREAU_ID      INTEGER        NOT NULL,
    CNTRY_ID                     INTEGER        NOT NULL,
    CNTRY_PRCRMNT_BUREAU_NM      VARCHAR(50)    NOT NULL,
    CNTRY_PRCRMNT_BUREAU_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (CNTRY_PRCRMNT_BUREAU_ID)
)
;



-- 
-- TABLE: CNTRY_PRGRM 
--

CREATE TABLE CNTRY_PRGRM(
    CNTRY_PRGRM_ID        INTEGER         NOT NULL,
    CNTRY_ID              INTEGER         NOT NULL,
    PRGRM_ORG_ID          INTEGER         NOT NULL,
    CNTRY_PRGRM_TYP_ID    INTEGER         NOT NULL,
    PRGRM_RCPNT_NM        VARCHAR(150)    NOT NULL,
    PRGRM_RCPNT_DESC      VARCHAR(250)    NOT NULL,
    PRIMARY KEY (CNTRY_PRGRM_ID)
)
;



-- 
-- TABLE: CNTRY_PRGRM_TYP 
--

CREATE TABLE CNTRY_PRGRM_TYP(
    CNTRY_PRGRM_TYP_ID      INTEGER        NOT NULL,
    CNTRY_PRGRM_TYP_NM      VARCHAR(50)    NOT NULL,
    CNTRY_PRGRM_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (CNTRY_PRGRM_TYP_ID)
)
;



-- 
-- TABLE: CNTRY_RCT_FCAST_FC 
--

CREATE TABLE CNTRY_RCT_FCAST_FC(
    CNTRY_RCT_FCAST_FC_ID              INTEGER           NOT NULL,
    CNTRY_ID                           INTEGER           NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID      INTEGER           NOT NULL,
    FCAST_PRD_END_DT_SRD_DAY_ID        INTEGER           NOT NULL,
    RPRT_PRD_TYP_ID                    INTEGER           NOT NULL,
    FCAST_BEGIN_SRD_MTH_ID             INTEGER           NOT NULL,
    FCAST_END_SRD_MTH_ID               INTEGER           NOT NULL,
    FCAST_SBMSSN_DT_SRD_DAY_ID         INTEGER           NOT NULL,
    FORECASET_PRD_END_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    FCAST_RCT_QTY                      DECIMAL(15, 2)    NOT NULL,
    PRIMARY KEY (CNTRY_RCT_FCAST_FC_ID)
)
;


-- 
-- TABLE: CNTRY_TRADE_ITM_CRTFCN 
--

CREATE TABLE CNTRY_TRADE_ITM_CRTFCN(
    CNTRY_TRADE_ITM_CRTFCN_ID        INTEGER          NOT NULL,
    PRDCT_CRTFCN_TYP_ID              INTEGER          NOT NULL,
    CNTRY_ID                         INTEGER          NOT NULL,
    TRADE_ITM_ID                     INTEGER          NOT NULL,
    SPPLR_CNTRCT_PRDCT_DTL_ID        INTEGER          NOT NULL,
    EFF_END_DT_SRD_DAY_ID            INTEGER          NOT NULL,
    EFF_STRT_DT_SRD_DAY_ID           INTEGER          NOT NULL,
    CNTRY_TRADE_ITM_CRTFCN_SEQNUM    CHAR(10),
    CERTIFICATIONAGENCY              VARCHAR(200)     NOT NULL,
    CERTIFICATIONSTANDARD            VARCHAR(200)     NOT NULL,
    CERTIFICATIONVALUE               VARCHAR(200)     NOT NULL,
    CRTFCN_VLD_YNFLG                 CHAR(1)          NOT NULL,
    CRTFCN_NUM                       VARCHAR(50)      NOT NULL,
    CRTFCN_NOTE                      VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (CNTRY_TRADE_ITM_CRTFCN_ID)
)
;



-- 
-- TABLE: CNTRY_TRADE_ITM_HUMANITARIAN_WAIVER 
--

CREATE TABLE CNTRY_TRADE_ITM_HUMANITARIAN_WAIVER(
    CNTRY_TRADE_ITM_HUMANITARIAN_WAIVER_ID    INTEGER          NOT NULL,
    CNTRY_ID                                  INTEGER          NOT NULL,
    TRADE_ITM_ID                              INTEGER          NOT NULL,
    SPPLR_CNTRCT_PRDCT_DTL_ID                 INTEGER          NOT NULL,
    EFF_END_SRD_DAY_ID                        INTEGER          NOT NULL,
    EFF_STRT_SRD_DAY_ID                       INTEGER          NOT NULL,
    WAIVER_VLD_YNFLG                          CHAR(1)          NOT NULL,
    WAIVER_NOTE                               VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (CNTRY_TRADE_ITM_HUMANITARIAN_WAIVER_ID)
)
;



-- 
-- TABLE: CNTRY_TRADE_ITM_RGSTRTN 
--

CREATE TABLE CNTRY_TRADE_ITM_RGSTRTN(
    CNTRY_TRADE_ITM_RGSTRTN_ID                   INTEGER          NOT NULL,
    TRADE_ITM_ID                                 INTEGER          NOT NULL,
    SPPLR_ID                                     INTEGER          NOT NULL,
    MFR_ID                                       INTEGER          NOT NULL,
    DSTNTN_CNTRY_ID                              INTEGER          NOT NULL,
    SPPLR_CNTRCT_PRDCT_DTL_ID                    INTEGER          NOT NULL,
    MFR_ST_ID                                    INTEGER          NOT NULL,
    RGSTRTN_EFF_STRT_DT_SRD_DAY_ID               INTEGER          NOT NULL,
    RGSTRTN_EFF_END_DT_SRD_DAY_ID                INTEGER          NOT NULL,
    RGSTRTN_NUM                                  VARCHAR(100),
    QA_QC_PROTOCOL                               VARCHAR(50)      NOT NULL,
    WARRANTY                                     VARCHAR(50)      NOT NULL,
    ORDERQUANTITYMULTIPLE                        INTEGER          NOT NULL,
    ORDERQUANTITYMINIMUM                         INTEGER          NOT NULL,
    ORDERQUANTITYMAXIMUM                         INTEGER          NOT NULL,
    TRADE_ITM_ORDERING_LEAD_TIME_DAYS            INTEGER          NOT NULL,
    TRADE_ITM_MFG_LEAD_TIME_DAYS                 INTEGER          NOT NULL,
    TRADE_ITM_SHPPNG_LEAD_TIME_DAYS              INTEGER          NOT NULL,
    TRADE_ITM_INSPCTN_LEAD_TIME_DAYS             INTEGER          NOT NULL,
    TRADE_ITM_SMPLNG_AND_TSTNG_LEAD_TIME_DAYS    INTEGER          NOT NULL,
    TRADE_ITM_MAX_PRDCTN_CPCTY_PER_MTH           INTEGER          NOT NULL,
    RGSTRTN_VLD_YNFLG                            CHAR(1)          NOT NULL,
    RGSTRTN_NOTE                                 VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (CNTRY_TRADE_ITM_RGSTRTN_ID)
)
;



-- 
-- TABLE: CRRNCY 
--

CREATE TABLE CRRNCY(
    CRRNCY_ID        INTEGER         NOT NULL,
    CNTRY_ID         INTEGER         NOT NULL,
    ISO_CRRNCY_CD    VARCHAR(3),
    CRRNCY_SYMBL     NVARCHAR(3),
    CRRNCY_NM        VARCHAR(50)     NOT NULL,
    CRRNCY_LNG_NM    VARCHAR(150),
    PRIMARY KEY (CRRNCY_ID)
)
;



-- 
-- TABLE: CRRNCY_EXCHNG_RT 
--

CREATE TABLE CRRNCY_EXCHNG_RT(
    CRRNCY_EXCHNG_RT_ID                        INTEGER           NOT NULL,
    CRRNCY_ID                                  INTEGER           NOT NULL,
    CRRNCY_EXCHNG_RT_VLD_FROM_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    CRRNCY_EXCHNG_RT_VLD_TO_DT_SRD_DAY_ID      INTEGER           NOT NULL,
    CRRNCY_EXCHNG_RT                           DECIMAL(18, 6)    NOT NULL,
    PRIMARY KEY (CRRNCY_EXCHNG_RT_ID)
)
;



-- 
-- TABLE: DIST 
--

CREATE TABLE DIST(
    DIST_ID      INTEGER        NOT NULL,
    RGN_ID       INTEGER        NOT NULL,
    DIST_NM      VARCHAR(50)    NOT NULL,
    DIST_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (DIST_ID)
)
;



-- 
-- TABLE: DMS 
--

CREATE TABLE DMS(
    DMS_ID      INTEGER        NOT NULL,
    RMS_ID      INTEGER        NOT NULL,
    DMS_NM      VARCHAR(50)    NOT NULL,
    DMS_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (DMS_ID)
)
;



-- 
-- TABLE: DONR_ACTVTY 
--

CREATE TABLE DONR_ACTVTY(
    DONR_ACTVTY_ID          INTEGER    NOT NULL,
    DONR_AGNCY_ID           INTEGER    NOT NULL,
    DONR_ACTVTY_CTGRY_ID    INTEGER    NOT NULL,
    PRIMARY KEY (DONR_ACTVTY_ID)
)
;



-- 
-- TABLE: DONR_ACTVTY_CTGRY 
--

CREATE TABLE DONR_ACTVTY_CTGRY(
    DONR_ACTVTY_CTGRY_ID      INTEGER        NOT NULL,
    DONR_ACTVTY_CTGRY_NM      VARCHAR(50)    NOT NULL,
    DONR_ACTVTY_CTGRY_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (DONR_ACTVTY_CTGRY_ID)
)
;



-- 
-- TABLE: DONR_AGNCY 
--

CREATE TABLE DONR_AGNCY(
    DONR_AGNCY_ID        INTEGER         NOT NULL,
    DONR_AGNCY_TYP_ID    INTEGER         NOT NULL,
    DONR_AGNCY_NM        VARCHAR(50)     NOT NULL,
    DONR_AGNCY_DESC      VARCHAR(250)    NOT NULL,
    PRIMARY KEY (DONR_AGNCY_ID)
)
;



-- 
-- TABLE: DONR_AGNCY_TYP 
--

CREATE TABLE DONR_AGNCY_TYP(
    DONR_AGNCY_TYP_ID      INTEGER        NOT NULL,
    DONR_AGNCY_TYP_NM      VARCHAR(50)    NOT NULL,
    DONR_AGNCY_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (DONR_AGNCY_TYP_ID)
)
;



-- 
-- TABLE: DONR_OFFC 
--

CREATE TABLE DONR_OFFC(
    DONR_OFFC_ID      INTEGER         NOT NULL,
    DONR_AGNCY_ID     INTEGER         NOT NULL,
    DONR_OFFC_NM      VARCHAR(150)    NOT NULL,
    DONR_OFFC_DESC    VARCHAR(50)     NOT NULL,
    PRIMARY KEY (DONR_OFFC_ID)
)
;



-- 
-- TABLE: DOSAGEFORMTYPE 
--

CREATE TABLE DOSAGEFORMTYPE(
    DOSAGEFORMTYPE_ID      INTEGER        NOT NULL,
    DOSAGEFORMTYPE         VARCHAR(80)    NOT NULL,
    DOSAGEFORMTYPE_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (DOSAGEFORMTYPE_ID)
)
;



-- 
-- TABLE: DRG_FRMLRY 
--

CREATE TABLE DRG_FRMLRY(
    DRG_FRMLRY_ID                     INTEGER          NOT NULL,
    DRG_FRMLRY_NM                     VARCHAR(50)      NOT NULL,
    DRG_FRMLRY_DESC                   VARCHAR(50)      NOT NULL,
    DRG_FRMLRY_INN                    VARCHAR(100),
    DRG_FRMLRY_ACTV_INGRDNT_1_NM      VARCHAR(50)      NOT NULL,
    DRG_FRMLRY_ACTV_INGRDNT_1_AMT     VARCHAR(50)      NOT NULL,
    DRG_FRMLRY_ACTV_INGRDNT_1_PCTG    DECIMAL(4, 3)    NOT NULL,
    DRG_FRMLRY_ACTV_INGRDNT_2_NM      VARCHAR(50)      NOT NULL,
    DRG_FRMLRY_ACTV_INGRDNT_2_AMT     VARCHAR(50)      NOT NULL,
    DRG_FRMLRY_ACTV_INGRDNT_2_PCTG    DECIMAL(4, 3)    NOT NULL,
    DRG_FRMLRY_ACTV_INGRDNT_3_NM      VARCHAR(50)      NOT NULL,
    DRG_FRMLRY_ACTV_INGRDNT_3_AMT     VARCHAR(50)      NOT NULL,
    DRG_FRMLRY_ACTV_INGRDNT_3_PCTG    DECIMAL(4, 3)    NOT NULL,
    DRG_FRMLRY_ACTV_INGRDNT_4_NM      VARCHAR(50)      NOT NULL,
    DRG_FRMLRY_ACTV_INGRDNT_4_AMT     VARCHAR(50)      NOT NULL,
    DRG_FRMLRY_ACTV_INGRDNT_4_PCTG    DECIMAL(4, 3)    NOT NULL,
    DRG_FRMLRY_ACTV_INGRDNT_5_NM      VARCHAR(50)      NOT NULL,
    DRG_FRMLRY_ACTV_INGRDNT_5_AMT     VARCHAR(50)      NOT NULL,
    DRG_FRMLRY_ACTV_INGRDNT_5_PCTG    DECIMAL(4, 3)    NOT NULL,
    PRIMARY KEY (DRG_FRMLRY_ID)
)
;



-- 
-- TABLE: DRG_UOD 
--

CREATE TABLE DRG_UOD(
    DRG_UOD_ID      INTEGER        NOT NULL,
    DRG_UOD_NM      VARCHAR(50)    NOT NULL,
    DRG_UOD_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (DRG_UOD_ID)
)
;



-- 
-- TABLE: DRG_UOP 
--

CREATE TABLE DRG_UOP(
    DRG_UOP_ID      INTEGER        NOT NULL,
    DRG_UOP_NM      VARCHAR(50)    NOT NULL,
    DRG_UOP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (DRG_UOP_ID)
)
;



-- 
-- TABLE: DRG_UOS 
--

CREATE TABLE DRG_UOS(
    DRG_UOS_ID      INTEGER        NOT NULL,
    DRG_UOS_NM      VARCHAR(50)    NOT NULL,
    DRG_UOS_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (DRG_UOS_ID)
)
;



-- 
-- TABLE: EMRGNCY_TYP 
--

CREATE TABLE EMRGNCY_TYP(
    EMRGNCY_TYP_ID      INTEGER        NOT NULL,
    EMRGNCY_TYP_NM      VARCHAR(50)    NOT NULL,
    EMRGNCY_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (EMRGNCY_TYP_ID)
)
;



-- 
-- TABLE: EXPCTD_TO_CRRY_FC 
--

CREATE TABLE EXPCTD_TO_CRRY_FC(
    EXPCTD_TO_CRRY_FC_ID                      INTEGER           NOT NULL,
    CNTRY_ID                                  INTEGER           NOT NULL,
    CNTRY_PRGRM_ID                            INTEGER           NOT NULL,
    LGSTCS_LCTN_ID                            INTEGER           NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_ID                   INTEGER           NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID             INTEGER           NOT NULL,
    EXPCTD_TO_CRRY_END_EFF_DT_SRD_DAY_ID      INTEGER           NOT NULL,
    EXPCTD_TO_CRRY_BEGIN_EFF_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    TGT_MIN_MOH_AT_LCTN                       DECIMAL(15, 2)    NOT NULL,
    TGT_MAX_MOH_AT_LCTN                       DECIMAL(15, 2)    NOT NULL,
    PRIMARY KEY (EXPCTD_TO_CRRY_FC_ID)
)
;



-- 
-- TABLE: EXTRNL_DONR 
--

CREATE TABLE EXTRNL_DONR(
    EXTRNL_DONR_ID      INTEGER        NOT NULL,
    EXTRNL_DONR_NM      VARCHAR(50)    NOT NULL,
    EXTRNL_DONR_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (EXTRNL_DONR_ID)
)
;



-- 
-- TABLE: FCLTY 
--

CREATE TABLE FCLTY(
    FCLTY_ID      INTEGER        NOT NULL,
    DIST_ID       INTEGER        NOT NULL,
    FCLTY_NM      VARCHAR(50)    NOT NULL,
    FCLTY_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (FCLTY_ID)
)
;


-- 
-- TABLE: FC_ROW_TYP 
--

CREATE TABLE FC_ROW_TYP(
    FC_ROW_TYP_ID      INTEGER        NOT NULL,
    FC_ROW_TYP_NM      VARCHAR(50)    NOT NULL,
    FC_ROW_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (FC_ROW_TYP_ID)
)
;


-- 
-- TABLE: FML_CNDM_PRDCT_TYP 
--

CREATE TABLE FML_CNDM_PRDCT_TYP(
    FML_CNDM_PRDCT_TYP_ID      INTEGER        NOT NULL,
    FML_CNDM_PRDCT_TYP_NM      VARCHAR(50)    NOT NULL,
    FML_CNDM_PRDCT_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (FML_CNDM_PRDCT_TYP_ID)
)
;



-- 
-- TABLE: FNDNG_SRC 
--

CREATE TABLE FNDNG_SRC(
    FNDNG_SRC_ID      INTEGER        NOT NULL,
    FNDNG_SRC_NM      VARCHAR(50)    NOT NULL,
    FNDNG_SRC_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (FNDNG_SRC_ID)
)
;



-- 
-- TABLE: FNNCL_RPRT_ACTVTY_PRPS 
--

CREATE TABLE FNNCL_RPRT_ACTVTY_PRPS(
    FNNCL_RPRT_ACTVTY_PRPS_ID      INTEGER        NOT NULL,
    FNNCL_RPRT_ACTVTY_PRPS_NM      VARCHAR(50)    NOT NULL,
    FNNCL_RPRT_ACTVTY_PRPS_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (FNNCL_RPRT_ACTVTY_PRPS_ID)
)
;



-- 
-- TABLE: FNNCL_RPRT_ACTVTY_TYP 
--

CREATE TABLE FNNCL_RPRT_ACTVTY_TYP(
    FNNCL_RPRT_ACTVTY_TYP_ID      INTEGER        NOT NULL,
    FNNCL_RPRT_ACTVTY_PRPS_ID     INTEGER        NOT NULL,
    FNNCL_RPRT_ACTVTY_TYP_NM      VARCHAR(50)    NOT NULL,
    FNNCL_RPRT_ACTVTY_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (FNNCL_RPRT_ACTVTY_TYP_ID)
)
;



-- 
-- TABLE: FNNCL_RPRT_CHRG_LCTN 
--

CREATE TABLE FNNCL_RPRT_CHRG_LCTN(
    FNNCL_RPRT_CHRG_LCTN_ID      INTEGER         NOT NULL,
    FNNCL_RPRT_CHRG_LCTN_NM      VARCHAR(50)     NOT NULL,
    FNNCL_RPRT_CHRG_LCTN_DESC    VARCHAR(250)    NOT NULL,
    PRIMARY KEY (FNNCL_RPRT_CHRG_LCTN_ID)
)
;



-- 
-- TABLE: FNNCL_RPRT_CTGRY 
--

CREATE TABLE FNNCL_RPRT_CTGRY(
    FNNCL_RPRT_CTGRY_ID      INTEGER        NOT NULL,
    FNNCL_RPRT_CTGRY_NM      VARCHAR(50)    NOT NULL,
    FNNCL_RPRT_CTGRY_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (FNNCL_RPRT_CTGRY_ID)
)
;



-- 
-- TABLE: FNNCL_RPRT_CTGRY_LVL 
--

CREATE TABLE FNNCL_RPRT_CTGRY_LVL(
    FNNCL_RPRT_CTGRY_LVL_ID      INTEGER        NOT NULL,
    FNNCL_RPRT_CTGRY_LVL_NM      VARCHAR(50)    NOT NULL,
    FNNCL_RPRT_CTGRY_LVL_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (FNNCL_RPRT_CTGRY_LVL_ID)
)
;



-- 
-- TABLE: FNNCL_RPRT_TCHNCL_CTGRY 
--

CREATE TABLE FNNCL_RPRT_TCHNCL_CTGRY(
    FNNCL_RPRT_TCHNCL_CTGRY_ID      INTEGER        NOT NULL,
    FNNCL_RPRT_TCHNCL_CTGRY_NM      VARCHAR(50)    NOT NULL,
    FNNCL_RPRT_TCHNCL_CTGRY_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (FNNCL_RPRT_TCHNCL_CTGRY_ID)
)
;



-- 
-- TABLE: FNNCL_RPRT_TCHNCL_SUBCAT 
--

CREATE TABLE FNNCL_RPRT_TCHNCL_SUBCAT(
    FNNCL_RPRT_TCHNCL_SUBCAT_ID      INTEGER         NOT NULL,
    FNNCL_RPRT_TCHNCL_CTGRY_ID       INTEGER         NOT NULL,
    FNNCL_RPRT_TCHNCL_SUBCAT_NM      VARCHAR(50)     NOT NULL,
    FNNCL_RPRT_TCHNCL_SUBCAT_DESC    VARCHAR(250)    NOT NULL,
    PRIMARY KEY (FNNCL_RPRT_TCHNCL_SUBCAT_ID)
)
;



-- 
-- TABLE: FNNCL_RPRT_TCHNCL_SUBSUBCAT 
--

CREATE TABLE FNNCL_RPRT_TCHNCL_SUBSUBCAT(
    FNNCL_RPRT_TCHNCL_SUBSUBCAT_ID      INTEGER        NOT NULL,
    IMPLMNTNG_PRTNR_ID                  INTEGER        NOT NULL,
    FNNCL_RPRT_TCHNCL_SUBCAT_ID         INTEGER        NOT NULL,
    FNNCL_RPRT_TCHNCL_SUBSUBCAT_NM      VARCHAR(50)    NOT NULL,
    FNNCL_RPRT_TCHNCL_SUBSUBCAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (FNNCL_RPRT_TCHNCL_SUBSUBCAT_ID)
)
;



-- 
-- TABLE: FNNCL_STTMNT_FC 
--

CREATE TABLE FNNCL_STTMNT_FC(
    FNNCL_STTMNT_FC_ID                 INTEGER           NOT NULL,
    TSKORDR_ID                         INTEGER           NOT NULL,
    HLTH_ELMNT_ID                      INTEGER           NOT NULL,
    FNNCL_RPRT_CTGRY_ID                INTEGER           NOT NULL,
    FNNCL_RPRT_CTGRY_LVL_ID            INTEGER           NOT NULL,
    FNNCL_RPRT_ACTVTY_TYP_ID           INTEGER           NOT NULL,
    CNTRCT_AWD_ID                      INTEGER           NOT NULL,
    PRIME_IMPLMNTNG_PRTNR_ID           INTEGER           NOT NULL,
    SUB_IMPLMNTNG_PRTNR_ID             INTEGER           NOT NULL,
    CNTRY_ID                           INTEGER           NOT NULL,
    STAFF_LCTN_CNTRY_ID                INTEGER           NOT NULL,
    USAID_MISSN_ID                     INTEGER           NOT NULL,
    FNNCL_RPRT_CHRG_LCTN_ID            INTEGER           NOT NULL,
    FNNCL_RPRT_SBMSSN_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    FNNCL_RPRT_EFF_DT_SRD_DAY_ID       INTEGER           NOT NULL,
    FNNCL_RPRT_PRD_SRD_MTH_ID          INTEGER           NOT NULL,
    FNNCL_RPRT_TCHNCL_SUBCAT_ID        INTEGER           NOT NULL,
    FNNCL_RPRT_TCHNCL_SUBSUBCAT_ID     INTEGER           NOT NULL,
    FNNCL_RPRT_VER_NUM                 SMALLINT          NOT NULL,
    ACTL_EXPNS_THIS_PRD                DECIMAL(12, 3)    NOT NULL,
    ACCRD_RO_EXPNS_THIS_PRD            DECIMAL(12, 3)    NOT NULL,
    ACCRD_PO_EXPNS_THIS_PRD            DECIMAL(12, 3)    NOT NULL,
    ACTL_LOE_PRSN_DAYS_THIS_PRD        DECIMAL(12, 5)    NOT NULL,
    ACCRD_LOE_PRSN_DAYS_THIS_PRD       DECIMAL(12, 5)    NOT NULL,
    ACTL_EXPNS_QTD                     DECIMAL(12, 3)    NOT NULL,
    ACCRD_EXPNS_QTD                    DECIMAL(12, 3)    NOT NULL,
    ACTL_LOE_PRSN_DAYS_QTD             DECIMAL(12, 5)    NOT NULL,
    ACCRD_LOE_PRSN_DAYS_QTD            DECIMAL(12, 5)    NOT NULL,
    ACTL_EXPNS_YTD                     DECIMAL(12, 3)    NOT NULL,
    ACCRD_EXPNS_YTD                    DECIMAL(12, 3)    NOT NULL,
    ACTL_LOE_PRSN_DAYS_YTD             DECIMAL(12, 5)    NOT NULL,
    ACCRD_LOE_PRSN_DAYS_YTD            DECIMAL(12, 5)    NOT NULL,
    ACTL_EXPNS_LOP                     DECIMAL(12, 3)    NOT NULL,
    ACCRD_EXPNS_LOP                    DECIMAL(12, 3)    NOT NULL,
    ACTL_LOE_PRSN_DAYS_LOP             DECIMAL(12, 5)    NOT NULL,
    ACCRD_LOE_PRSN_DAYS_LOP            DECIMAL(12, 5)    NOT NULL,
    PRIMARY KEY (FNNCL_STTMNT_FC_ID)
)
;



-- 
-- TABLE: FRT_FWDR 
--

CREATE TABLE FRT_FWDR(
    FRT_FWDR_ID      INTEGER        NOT NULL,
    FRT_FWDR_NM      VARCHAR(50)    NOT NULL,
    FRT_FWDR_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (FRT_FWDR_ID)
)
;



-- 
-- TABLE: GMDN 
--

CREATE TABLE GMDN(
    GMDN_ID     INTEGER         NOT NULL,
    GMDNCODE    VARCHAR(5)      NOT NULL,
    GMDN_TRM    VARCHAR(75)     NOT NULL,
    GMDN_DEF    VARCHAR(250)    NOT NULL,
    PRIMARY KEY (GMDN_ID)
)
;



-- 
-- TABLE: GPC_BRCK 
--

CREATE TABLE GPC_BRCK(
    GPC_BRCK_ID      INTEGER         NOT NULL,
    GPC_CLSS_ID      INTEGER         NOT NULL,
    GPC_BRCK_CD      VARCHAR(10),
    GPC_BRCK_DESC    VARCHAR(500),
    PRIMARY KEY (GPC_BRCK_ID)
)
;



-- 
-- TABLE: GPC_CLSS 
--

CREATE TABLE GPC_CLSS(
    GPC_CLSS_ID      INTEGER         NOT NULL,
    GPC_FMLY_ID      INTEGER         NOT NULL,
    GPC_CLSS_CD      VARCHAR(10),
    GPC_CLSS_DESC    VARCHAR(500),
    PRIMARY KEY (GPC_CLSS_ID)
)
;



-- 
-- TABLE: GPC_FMLY 
--

CREATE TABLE GPC_FMLY(
    GPC_FMLY_ID      INTEGER         NOT NULL,
    GPC_SGMNT_ID     INTEGER         NOT NULL,
    GPC_FMLY_CD      VARCHAR(10),
    GPC_FMLY_DESC    VARCHAR(500),
    PRIMARY KEY (GPC_FMLY_ID)
)
;



-- 
-- TABLE: GPC_SGMNT 
--

CREATE TABLE GPC_SGMNT(
    GPC_SGMNT_ID      INTEGER         NOT NULL,
    GPC_SGMNT_CD      VARCHAR(10),
    GPC_SGMNT_DESC    VARCHAR(500),
    PRIMARY KEY (GPC_SGMNT_ID)
)
;



-- 
-- TABLE: GRN_DLY_FC 
--

CREATE TABLE GRN_DLY_FC(
    GRN_DLY_FC_ID                INTEGER          NOT NULL,
    GRN_FC_ID                    INTEGER          NOT NULL,
    DT_DLY_STARTED_SRD_DAY_ID    INTEGER          NOT NULL,
    DT_DLY_CLRD_SRD_DAY_ID       INTEGER          NOT NULL,
    GRN_DLY_TYP_ID               INTEGER          NOT NULL,
    GRN_DLY_RSN_ID               INTEGER          NOT NULL,
    GRN_DLY_DAY_CNT              INTEGER          NOT NULL,
    GRN_DLY_RMRKS                VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (GRN_DLY_FC_ID)
)
;



-- 
-- TABLE: GRN_DLY_RSN 
--

CREATE TABLE GRN_DLY_RSN(
    GRN_DLY_RSN_ID      INTEGER        NOT NULL,
    GRN_DLY_RSN_NM      VARCHAR(50)    NOT NULL,
    GRN_DLY_RSN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (GRN_DLY_RSN_ID)
)
;



-- 
-- TABLE: GRN_DLY_RSPNSBL_PRTY 
--

CREATE TABLE GRN_DLY_RSPNSBL_PRTY(
    GRN_DLY_RSPNSBL_PRTY_ID      INTEGER        NOT NULL,
    GRN_DLY_RSPNSBL_PRTY_NM      VARCHAR(50)    NOT NULL,
    GRN_DLY_RSPNSBL_PRTY_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (GRN_DLY_RSPNSBL_PRTY_ID)
)
;



-- 
-- TABLE: GRN_DLY_TYP 
--

CREATE TABLE GRN_DLY_TYP(
    GRN_DLY_TYP_ID             INTEGER        NOT NULL,
    GRN_DLY_RSPNSBL_PRTY_ID    INTEGER        NOT NULL,
    GRN_DLY_TYP_NM             VARCHAR(50)    NOT NULL,
    GRN_DLY_TYP_DESC           VARCHAR(50)    NOT NULL,
    GRN_DLY_ACCPTBL_YNFLG      CHAR(1)        NOT NULL,
    PRIMARY KEY (GRN_DLY_TYP_ID)
)
;



-- 
-- TABLE: GRN_DOC_CMPLTN_STAT 
--

CREATE TABLE GRN_DOC_CMPLTN_STAT(
    GRN_DOC_CMPLTN_STAT_ID      INTEGER        NOT NULL,
    GRN_DOC_CMPLTN_STAT_NM      VARCHAR(50)    NOT NULL,
    GRN_DOC_CMPLTN_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (GRN_DOC_CMPLTN_STAT_ID)
)
;



-- 
-- TABLE: GRN_FC 
--

CREATE TABLE GRN_FC(
    GRN_FC_ID                 INTEGER           NOT NULL,
    GRN_TYP_ID                INTEGER           NOT NULL,
    TSKORDR_ID                INTEGER           NOT NULL,
    CNTRY_ID                  INTEGER           NOT NULL,
    SRC_LGSTCS_LCTN_ID        INTEGER           NOT NULL,
    DSTNTN_LGSTCS_LCTN_ID     INTEGER           NOT NULL,
    SHPPNG_MTHD_ID            INTEGER           NOT NULL,
    FRT_FWDR_ID               INTEGER           NOT NULL,
    GRN_STAT_ID               INTEGER           NOT NULL,
    GRN_DOC_CMPLTN_STAT_ID    INTEGER           NOT NULL,
    PPLN_ORDR_DISP_ID         INTEGER           NOT NULL,
    PPLN_STG_ID               INTEGER           NOT NULL,
    SPPLY_CHN_FRMWRK_ID       INTEGER           NOT NULL,
    CRRNCY_ID                 INTEGER           NOT NULL,
    INCOTERM_ID               INTEGER           NOT NULL,
    PO_FC_ID                  INTEGER           NOT NULL,
    SO_FC_ID                  INTEGER           NOT NULL,
    GDS_RCVD_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    INVC_SNT_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    SPPLR_ID                  INTEGER           NOT NULL,
    CNTRY_PRGRM_ID            INTEGER           NOT NULL,
    DONR_OFFC_ID              INTEGER           NOT NULL,
    FNDNG_SRC_ID              INTEGER           NOT NULL,
    HLTH_ELMNT_ID             INTEGER           NOT NULL,
    PMT_TRMS_TYP_ID           INTEGER           NOT NULL,
    WT_UOM_ID                 INTEGER           NOT NULL,
    VOL_UOM_ID                INTEGER           NOT NULL,
    GRN_NUM                   VARCHAR(50)       NOT NULL,
    PRTL_DLVRY_YNFLG          CHAR(1)           NOT NULL,
    CRRNCY_EXCHNG_RT          DECIMAL(18, 6)    NOT NULL,
    HDR_DISC_PCTG             DECIMAL(4, 3)     NOT NULL,
    HDR_DISC_VAL              DECIMAL(12, 3)    NOT NULL,
    TOT_LIN_WT                DECIMAL(9, 3)     NOT NULL,
    TOT_LIN_VOL               DECIMAL(9, 3)     NOT NULL,
    TOT_LIN_VAL               DECIMAL(12, 3)    NOT NULL,
    TOT_LIN_EXW_VAL           DECIMAL(12, 3)    NOT NULL,
    TOT_LIN_DISC_VAL          DECIMAL(12, 3)    NOT NULL,
    FRT_EXPNS                 DECIMAL(12, 3)    NOT NULL,
    INSRNC_EXPNS              DECIMAL(12, 3)    NOT NULL,
    QA_EXPNS                  DECIMAL(12, 3)    NOT NULL,
    SCRTY_EXPNS               DECIMAL(12, 3)    NOT NULL,
    OTHR_HDR_EXPNSS           DECIMAL(12, 3)    NOT NULL,
    GRN_RMRKS                 VARCHAR(4000)     NOT NULL,
    PRIMARY KEY (GRN_FC_ID)
)
;



-- 
-- TABLE: GRN_HDR_EXPNS_FC 
--

CREATE TABLE GRN_HDR_EXPNS_FC(
    GRN_HDR_EXPNS_FC_ID     INTEGER           NOT NULL,
    GRN_FC_ID               INTEGER           NOT NULL,
    GRN_HDR_EXPNS_TYP_ID    INTEGER           NOT NULL,
    EXPNS_VAL               DECIMAL(12, 3)    NOT NULL,
    EXPNS_DISC_PCTG         DECIMAL(4, 3)     NOT NULL,
    EXPNS_DISC_VAL          DECIMAL(12, 3)    NOT NULL,
    PRIMARY KEY (GRN_HDR_EXPNS_FC_ID)
)
;



-- 
-- TABLE: GRN_HDR_EXPNS_TYP 
--

CREATE TABLE GRN_HDR_EXPNS_TYP(
    GRN_HDR_EXPNS_TYP_ID      INTEGER        NOT NULL,
    GRN_HDR_EXPNS_TYP_NM      VARCHAR(50)    NOT NULL,
    GRN_HDR_EXPNS_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (GRN_HDR_EXPNS_TYP_ID)
)
;



-- 
-- TABLE: GRN_KEY_INFO_TYP 
--

CREATE TABLE GRN_KEY_INFO_TYP(
    GRN_KEY_INFO_TYP_ID      INTEGER        NOT NULL,
    GRN_KEY_INFO_TYP_NM      VARCHAR(50)    NOT NULL,
    GRN_KEY_INFO_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (GRN_KEY_INFO_TYP_ID)
)
;



-- 
-- TABLE: GRN_KIC_FC 
--

CREATE TABLE GRN_KIC_FC(
    GRN_KIC_FC_ID          INTEGER          NOT NULL,
    GRN_FC_ID              INTEGER          NOT NULL,
    SRD_DAY_ID             INTEGER          NOT NULL,
    GRN_KEY_INFO_TYP_ID    INTEGER          NOT NULL,
    GRN_KIC_RSN_ID         INTEGER          NOT NULL,
    PREV_VAL               VARCHAR(4000)    NOT NULL,
    CRRNT_VAL              VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (GRN_KIC_FC_ID)
)
;



-- 
-- TABLE: GRN_KIC_RSN 
--

CREATE TABLE GRN_KIC_RSN(
    GRN_KIC_RSN_ID      INTEGER        NOT NULL,
    GRN_KIC_RSN_NM      VARCHAR(50)    NOT NULL,
    GRN_KIC_RSN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (GRN_KIC_RSN_ID)
)
;



-- 
-- TABLE: GRN_LIN_FC 
--

CREATE TABLE GRN_LIN_FC(
    GRN_LIN_FC_ID                    INTEGER           NOT NULL,
    GRN_FC_ID                        INTEGER           NOT NULL,
    PO_LIN_FC_ID                     INTEGER           NOT NULL,
    SO_LIN_FC_ID                     INTEGER           NOT NULL,
    SRC_LGSTCS_LCTN_ID               INTEGER           NOT NULL,
    DSTNTN_LGSTCS_LCTN_ID            INTEGER           NOT NULL,
    SHPPNG_MTHD_ID                   INTEGER           NOT NULL,
    GDS_RCVD_DT_SRD_DAY_ID           INTEGER           NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID    INTEGER           NOT NULL,
    TRADE_ITM_ID                     INTEGER           NOT NULL,
    MFR_PRDCT_LOT_ID                 INTEGER           NOT NULL,
    MFR_ID                           INTEGER           NOT NULL,
    GRN_LIN_STAT_ID                  INTEGER           NOT NULL,
    GRN_LIN_STAT_RSN_ID              INTEGER           NOT NULL,
    QTY_UOM_ID                       INTEGER           NOT NULL,
    WT_UOM_ID                        INTEGER           NOT NULL,
    VOL_UOM_ID                       INTEGER           NOT NULL,
    LIN_NUM                          INTEGER           NOT NULL,
    LIN_QTY                          DECIMAL(15, 2)    NOT NULL,
    LIN_EACH_QTY                     DECIMAL(15, 2)    NOT NULL,
    LIN_CYP                          DECIMAL(11, 2)    NOT NULL,
    LIN_TOT_WT                       DECIMAL(9, 3)     NOT NULL,
    LIN_TOT_VOL                      DECIMAL(9, 3)     NOT NULL,
    LIN_VAL                          DECIMAL(12, 3)    NOT NULL,
    LIN_EXW_VAL                      DECIMAL(12, 3)    NOT NULL,
    LIN_SHPPNG_CST                   DECIMAL(12, 3)    NOT NULL,
    LIN_DISC_PCTG                    DECIMAL(4, 3)     NOT NULL,
    LIN_DISC_VAL                     DECIMAL(12, 3)    NOT NULL,
    PRIMARY KEY (GRN_LIN_FC_ID)
)
;



-- 
-- TABLE: GRN_LIN_STAT 
--

CREATE TABLE GRN_LIN_STAT(
    GRN_LIN_STAT_ID      INTEGER        NOT NULL,
    GRN_LIN_STAT_NM      VARCHAR(10)    NOT NULL,
    GRN_LIN_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (GRN_LIN_STAT_ID)
)
;



-- 
-- TABLE: GRN_LIN_STAT_RSN 
--

CREATE TABLE GRN_LIN_STAT_RSN(
    GRN_LIN_STAT_RSN_ID      INTEGER        NOT NULL,
    GRN_LIN_STAT_RSN_NM      VARCHAR(50)    NOT NULL,
    GRN_LIN_STAT_RSN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (GRN_LIN_STAT_RSN_ID)
)
;



-- 
-- TABLE: GRN_MLSTN_FC 
--

CREATE TABLE GRN_MLSTN_FC(
    GRN_MLSTN_FC_ID            INTEGER          NOT NULL,
    GRN_FC_ID                  INTEGER          NOT NULL,
    GRN_LIN_FC_ID              INTEGER          NOT NULL,
    GRN_MLSTN_DT_SRD_DAY_ID    INTEGER          NOT NULL,
    GRN_MLSTN_TYP_ID           INTEGER          NOT NULL,
    GRN_MLSTN_RSN_ID           INTEGER          NOT NULL,
    GRN_MLSTN_RMRKS            VARCHAR(4000)    NOT NULL,
    GRN_MLSTN_RSN_RMRKS        VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (GRN_MLSTN_FC_ID)
)
;



-- 
-- TABLE: GRN_MLSTN_RSN 
--

CREATE TABLE GRN_MLSTN_RSN(
    GRN_MLSTN_RSN_ID      INTEGER        NOT NULL,
    GRN_MLSTN_RSN_NM      VARCHAR(50)    NOT NULL,
    GRN_MLSTN_RSN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (GRN_MLSTN_RSN_ID)
)
;



-- 
-- TABLE: GRN_MLSTN_TYP 
--

CREATE TABLE GRN_MLSTN_TYP(
    GRN_MLSTN_TYP_ID      INTEGER        NOT NULL,
    GRN_MLSTN_TYP_NM      VARCHAR(50)    NOT NULL,
    GRN_MLSTN_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (GRN_MLSTN_TYP_ID)
)
;



-- 
-- TABLE: GRN_STAT 
--

CREATE TABLE GRN_STAT(
    GRN_STAT_ID      INTEGER        NOT NULL,
    GRN_STAT_NM      VARCHAR(50)    NOT NULL,
    GRN_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (GRN_STAT_ID)
)
;



-- 
-- TABLE: GRN_TYP 
--

CREATE TABLE GRN_TYP(
    GRN_TYP_ID      INTEGER        NOT NULL,
    GRN_TYP_NM      VARCHAR(50)    NOT NULL,
    GRN_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (GRN_TYP_ID)
)
;



-- 
-- TABLE: HANDLINGINSTRUCTION 
--

CREATE TABLE HANDLINGINSTRUCTION(
    HANDLINGINSTRUCTION_ID                     CHAR(10)         NOT NULL,
    TRADE_ITM_ID                               INTEGER          NOT NULL,
    HANDLINGINSTRUCTION_SEQNUM                 SMALLINT         NOT NULL,
    HANDLINGINSTRUCTIONSCODEREFERENCE          VARCHAR(70)      NOT NULL,
    HANDLINGINSTRUCTIONSDESCRIPTION            VARCHAR(1000),
    HANDLINGINSTRUCTIONS_CODELISTAGENCYNAME    VARCHAR(80)      NOT NULL,
    HANDLINGINSTRUCTIONS_CODELISTNAME          VARCHAR(80)      NOT NULL,
    PRIMARY KEY (HANDLINGINSTRUCTION_ID)
)
;



-- 
-- TABLE: HAZARDOUSINFORMATIONDETAIL 
--

CREATE TABLE HAZARDOUSINFORMATIONDETAIL(
    HAZARDOUSINFORMATIONDETAIL_ID          CHAR(10)        NOT NULL,
    HAZARDOUSINFORMATIONHEADER_ID          INTEGER         NOT NULL,
    HAZARDOUSINFORMATIONDETAIL_SEQNUM      CHAR(10),
    CLASSOFDANGEROUSGOODS                  VARCHAR(10)     NOT NULL,
    CLASSOFDANGEROUSGOODSSUBSIDIARYCODE    VARCHAR(10)     NOT NULL,
    DANGEROUSGOODSSHIPPINGNAME             VARCHAR(200)    NOT NULL,
    DANGEROUSGOODSTECHNICALNAME            VARCHAR(200)    NOT NULL,
    UNITEDNATIONSDANGEROUSGOODSNUMBER      VARCHAR(10)     NOT NULL,
    PRIMARY KEY (HAZARDOUSINFORMATIONDETAIL_ID)
)
;



-- 
-- TABLE: HAZARDOUSINFORMATIONHEADER 
--

CREATE TABLE HAZARDOUSINFORMATIONHEADER(
    HAZARDOUSINFORMATIONHEADER_ID                INTEGER          NOT NULL,
    TRADE_ITM_ID                                 INTEGER          NOT NULL,
    HAZARDOUSINFORMATIONHEADER_SEQNUM            SMALLINT         NOT NULL,
    DANGEROUSGOODSREGULATIONAGENCY               VARCHAR(70)      NOT NULL,
    DANGEROUSGOODSREGULATIONCODE                 VARCHAR(70)      NOT NULL,
    FLASHPOINTTEMPERATURE                        DECIMAL(9, 3),
    FLASHPOINTTEMPERATURE_MEASUREMENTUNITCODE    VARCHAR(80)      NOT NULL,
    PRIMARY KEY (HAZARDOUSINFORMATIONHEADER_ID)
)
;



-- 
-- TABLE: HLTH_ELMNT 
--

CREATE TABLE HLTH_ELMNT(
    HLTH_ELMNT_ID      INTEGER        NOT NULL,
    HLTH_ELMNT_NM      VARCHAR(75)    NOT NULL,
    HLTH_ELMNT_DESC    VARCHAR(75)    NOT NULL,
    PRIMARY KEY (HLTH_ELMNT_ID)
)
;



-- 
-- TABLE: IMPLMNTNG_PRTNR 
--

CREATE TABLE IMPLMNTNG_PRTNR(
    IMPLMNTNG_PRTNR_ID      INTEGER        NOT NULL,
    IMPLMNTNG_PRTNR_NM      VARCHAR(50)    NOT NULL,
    IMPLMNTNG_PRTNR_DESC    VARCHAR(50)    NOT NULL,
    IS_PRIME_YNFLG          CHAR(1)        NOT NULL,
    IS_SUB_YNFLG            CHAR(1)        NOT NULL,
    PRIMARY KEY (IMPLMNTNG_PRTNR_ID)
)
;



-- 
-- TABLE: IMPLMNTNG_PRTNR_EXPCTD_DATA_SBMSSN 
--

CREATE TABLE IMPLMNTNG_PRTNR_EXPCTD_DATA_SBMSSN(
    IMPLMNTNG_PRTNR_EXPCTD_DATA_SBMSSN_ID                   INTEGER          NOT NULL,
    IMPLMNTNG_PRTNR_ID                                      INTEGER          NOT NULL,
    PRDCTY_ID                                               INTEGER          NOT NULL,
    IMPLMNTNG_PRTNR_EXPCTD_DATA_SBMSSN_NM                   VARCHAR(50)      NOT NULL,
    IMPLMNTNG_PRTNR_EXPCTD_DATA_SBMSSN_FILE_NM              VARCHAR(150)     NOT NULL,
    IMPLMNTNG_PRTNR_EXPCTD_DATA_SBMSSN_DESC                 VARCHAR(50)      NOT NULL,
    IMPLMNTNG_PRTNR_EXPCTD_DATA_SBMSSN_ROW_CNT              INTEGER          NOT NULL,
    IMPLMNTNG_PRTNR_EXPCTD_DATA_SBMSSN_ALLOWABLE_LOW_PCT    DECIMAL(4, 3)    NOT NULL,
    IMPLMNTNG_PRTNR_EXPCTD_DATA_SBMSSN_ALLOWABLE_HGH_PCT    DECIMAL(4, 3)    NOT NULL,
    PRIMARY KEY (IMPLMNTNG_PRTNR_EXPCTD_DATA_SBMSSN_ID)
)
;



-- 
-- TABLE: INCOTERM 
--

CREATE TABLE INCOTERM(
    INCOTERM_ID                   INTEGER        NOT NULL,
    INCOTERM_NM                   VARCHAR(50)    NOT NULL,
    INCOTERM_DESC                 VARCHAR(50)    NOT NULL,
    EXPRT_PCKNG_PYR               VARCHAR(20),
    MRKNG_AND_LBLNG_PYR           VARCHAR(20),
    BLCK_AND_BRC_PYR              VARCHAR(20),
    EXPRT_FRMLTS_PYR              VARCHAR(20),
    FRT_FWDR_FEES_PYR             VARCHAR(20),
    INLND_FRT_TO_MAIN_CRRR_PYR    VARCHAR(20),
    ORGN_PRT_TRMNL_FEES_PYR       VARCHAR(20),
    VSSL_LDNG_FEES_PYR            VARCHAR(20),
    OCN_OR_ARFRGHT_PYR            VARCHAR(20),
    NMNTN_OF_US_FRT_FWDR_PYR      VARCHAR(20),
    MRN_INSRNC_PYR                VARCHAR(20),
    UNLD_MAIN_CRRR_CHRGS_PYR      VARCHAR(20),
    DSTNTN_TRMNL_PORT_FEES_PYR    VARCHAR(20),
    NMNTN_OF_ON_CRRG_PYR          VARCHAR(20),
    SCRTY_INFO_RQRMNTS_PYR        VARCHAR(20),
    CSTMS_ENTRY_SVC_FEES_PYR      VARCHAR(20),
    DTYS_TXS_CSTMS_FEES_PYR       VARCHAR(20),
    DLVR_TO_BUYR_PYR              VARCHAR(20),
    DLVRNG_CRRR_UNLDNG_PYR        VARCHAR(20),
    PRIMARY KEY (INCOTERM_ID)
)
;



-- 
-- TABLE: INFO_PRVDR 
--

CREATE TABLE INFO_PRVDR(
    INFO_PRVDR_ID       INTEGER          NOT NULL,
    INFO_PRVDR_CD       VARCHAR(20)      NOT NULL,
    INFO_PRVDR_NM       VARCHAR(50)      NOT NULL,
    INFO_PRVDR_DESC     VARCHAR(4000)    NOT NULL,
    INFO_PRVDR_SCHMA    VARCHAR(50)      NOT NULL,
    INFO_PRVDR_FTP      VARCHAR(2000)    NOT NULL,
    PRIMARY KEY (INFO_PRVDR_ID)
)
;



-- 
-- TABLE: INTNDD_RLF_GRP 
--

CREATE TABLE INTNDD_RLF_GRP(
    INTNDD_RLF_GRP_ID      INTEGER        NOT NULL,
    INTNDD_RLF_GRP_NM      VARCHAR(50)    NOT NULL,
    INTNDD_RLF_GRP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (INTNDD_RLF_GRP_ID)
)
;



-- 
-- TABLE: INTNDD_RLF_TYP 
--

CREATE TABLE INTNDD_RLF_TYP(
    INTNDD_RLF_TYP_ID      INTEGER        NOT NULL,
    INTNDD_RLF_GRP_ID      INTEGER        NOT NULL,
    INTNDD_RLF_TYP_NM      VARCHAR(50)    NOT NULL,
    INTNDD_RLF_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (INTNDD_RLF_TYP_ID)
)
;



-- 
-- TABLE: INV_AVLBLTY_STAT 
--

CREATE TABLE INV_AVLBLTY_STAT(
    INV_AVLBLTY_STAT_ID      INTEGER        NOT NULL,
    INV_AVLBLTY_STAT_NM      VARCHAR(50)    NOT NULL,
    INV_AVLBLTY_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (INV_AVLBLTY_STAT_ID)
)
;



-- 
-- TABLE: INV_MGMT_RPRT_DTL_LN_FC 
--

CREATE TABLE INV_MGMT_RPRT_DTL_LN_FC(
    INV_MGMT_RPRT_DTL_LN_FC_ID         INTEGER           NOT NULL,
    INV_MGMT_RPRT_HDR_FC_ID            INTEGER           NOT NULL,
    INV_MGMT_RPRT_DTL_LN_TYP_ID        INTEGER           NOT NULL,
    INV_MGMT_RPRT_DTL_RECORD_SRC_ID    INTEGER           NOT NULL,
    SPPLY_CHN_LVL_ID                   INTEGER           NOT NULL,
    TRANS_DT_SRD_DAY_ID                INTEGER           NOT NULL,
    DT_STCK_RPT_SRD_DAY_ID             INTEGER           NOT NULL,
    NEXT_SHPMNT_DT_SRD_DAY_ID          INTEGER           NOT NULL,
    MFG_DT_SRD_DAY_ID                  INTEGER           NOT NULL,
    EXPIRY_DT_SRD_DAY_ID               INTEGER           NOT NULL,
    PRCRNG_AGNCY_ID                    INTEGER           NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID      INTEGER           NOT NULL,
    TRADE_ITM_ID                       INTEGER           NOT NULL,
    WT_UOM_ID                          INTEGER           NOT NULL,
    VOL_UOM_ID                         INTEGER           NOT NULL,
    INV_AVLBLTY_STAT_ID                INTEGER           NOT NULL,
    QTY_UOM_ID                         INTEGER           NOT NULL,
    MFR_PRDCT_LOT_ID                   INTEGER           NOT NULL,
    SRC_LGSTCS_LCTN_ID                 INTEGER           NOT NULL,
    DSTNTN_LGSTCS_LCTN_ID              INTEGER           NOT NULL,
    DTL_LN_SEQ_NUM                     SMALLINT          NOT NULL,
    DTL_LN_CARRIED_FWD_YNFLG           CHAR(1)           NOT NULL,
    ITM_QTY                            DECIMAL(15, 2)    NOT NULL,
    ITM_VAL                            DECIMAL(12, 3)    NOT NULL,
    ITM_CYP                            DECIMAL(11, 2)    NOT NULL,
    ITM_MTHS_OF_STCK                   DECIMAL(9, 2)     NOT NULL,
    ITM_RPT_AMC                        DECIMAL(15, 2)    NOT NULL,
    ITM_MTHS_OF_STCK_TGT_MIN           DECIMAL(9, 2)     NOT NULL,
    ITM_MTHS_OF_STCK_TGT_MAX           DECIMAL(9, 2)     NOT NULL,
    INV_MGMT_DTL_LN_NOTES              VARCHAR(4000)     NOT NULL,
    RCMND_ACTN_NOTES                   VARCHAR(4000)     NOT NULL,
    ON_ST_LCTN_TXT                     VARCHAR(250)      NOT NULL,
    LSS_EXPLNTN_TXT                    VARCHAR(4000)     NOT NULL,
    MFR_PRDCT_LOT_TOT_QTY              CHAR(10),
    PRIMARY KEY (INV_MGMT_RPRT_DTL_LN_FC_ID)
)
;



-- 
-- TABLE: INV_MGMT_RPRT_DTL_LN_TYP 
--

CREATE TABLE INV_MGMT_RPRT_DTL_LN_TYP(
    INV_MGMT_RPRT_DTL_LN_TYP_ID      INTEGER        NOT NULL,
    INV_MGMT_RPRT_DTL_LN_TYP_NM      VARCHAR(50)    NOT NULL,
    INV_MGMT_RPRT_DTL_LN_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (INV_MGMT_RPRT_DTL_LN_TYP_ID)
)
;



-- 
-- TABLE: INV_MGMT_RPRT_DTL_RECORD_SRC 
--

CREATE TABLE INV_MGMT_RPRT_DTL_RECORD_SRC(
    INV_MGMT_RPRT_DTL_RECORD_SRC_ID      INTEGER        NOT NULL,
    INV_MGMT_RPRT_DTL_RECORD_SRC_NM      VARCHAR(50)    NOT NULL,
    INV_MGMT_RPRT_DTL_RECORD_SRC_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (INV_MGMT_RPRT_DTL_RECORD_SRC_ID)
)
;



-- 
-- TABLE: INV_MGMT_RPRT_HDR_FC 
--

CREATE TABLE INV_MGMT_RPRT_HDR_FC(
    INV_MGMT_RPRT_HDR_FC_ID        INTEGER           NOT NULL,
    INV_MGMT_RPRT_STAT_ID          INTEGER           NOT NULL,
    INV_MGMT_RPRT_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    HLTH_ELMNT_ID                  INTEGER           NOT NULL,
    CNTRY_PRGRM_ID                 INTEGER           NOT NULL,
    LGSTCS_LCTN_ID                 INTEGER           NOT NULL,
    TOT_INV_IN_VAL                 DECIMAL(12, 3)    NOT NULL,
    TOT_INV_OUT_VAL                DECIMAL(12, 3)    NOT NULL,
    TOT_INV_ON_HAND_VAL            DECIMAL(12, 3)    NOT NULL,
    INV_NOTES                      VARCHAR(4000)     NOT NULL,
    PRIMARY KEY (INV_MGMT_RPRT_HDR_FC_ID)
)
;



-- 
-- TABLE: INV_MGMT_RPRT_STAT 
--

CREATE TABLE INV_MGMT_RPRT_STAT(
    INV_MGMT_RPRT_STAT_ID      INTEGER        NOT NULL,
    INV_MGMT_RPRT_STAT_NM      VARCHAR(50)    NOT NULL,
    INV_MGMT_RPRT_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (INV_MGMT_RPRT_STAT_ID)
)
;



-- 
-- TABLE: IUD_ACTV_INGRDNT 
--

CREATE TABLE IUD_ACTV_INGRDNT(
    IUD_ACTV_INGRDNT_ID      INTEGER        NOT NULL,
    IUD_ACTV_INGRDNT_NM      VARCHAR(50)    NOT NULL,
    IUD_ACTV_INGRDNT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (IUD_ACTV_INGRDNT_ID)
)
;



-- 
-- TABLE: IUD_TYP 
--

CREATE TABLE IUD_TYP(
    IUD_TYP_ID      INTEGER        NOT NULL,
    IUD_TYP_NM      VARCHAR(50)    NOT NULL,
    IUD_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (IUD_TYP_ID)
)
;



-- 
-- TABLE: LAB_EQPMNT_PRDCT_TYP 
--

CREATE TABLE LAB_EQPMNT_PRDCT_TYP(
    LAB_EQPMNT_PRDCT_TYP_ID         INTEGER         NOT NULL,
    MFR_ID                          INTEGER         NOT NULL,
    LAB_EQPMNT_PRDCT_TYP_NM         VARCHAR(50)     NOT NULL,
    LAB_EQPMNT_PRDCT_TYP_BRND_NM    VARCHAR(50)     NOT NULL,
    LAB_EQPMNT_PRDCT_TYP_MDL_NM     VARCHAR(150)    NOT NULL,
    PRIMARY KEY (LAB_EQPMNT_PRDCT_TYP_ID)
)
;



-- 
-- TABLE: LAB_SPPLY_PRDCT_TYP 
--

CREATE TABLE LAB_SPPLY_PRDCT_TYP(
    LAB_SPPLY_PRDCT_TYP_ID      INTEGER        NOT NULL,
    LAB_SPPLY_PRDCT_TYP_NM      VARCHAR(50)    NOT NULL,
    LAB_SPPLY_PRDCT_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (LAB_SPPLY_PRDCT_TYP_ID)
)
;



-- 
-- TABLE: LANGUAGESPECIFICBRANDNAME 
--

CREATE TABLE LANGUAGESPECIFICBRANDNAME(
    LANGUAGESPECIFICBRANDNAME_ID              CHAR(10)       NOT NULL,
    TRADE_ITM_ID                              INTEGER        NOT NULL,
    LANGUAGESPECIFICBRANDNAME_SEQNUM          SMALLINT       NOT NULL,
    LANGUAGESPECIFICBRANDNAME                 VARCHAR(70)    NOT NULL,
    LANGUAGESPECIFICBRANDNAME_LANGUAGECODE    VARCHAR(80)    NOT NULL,
    PRIMARY KEY (LANGUAGESPECIFICBRANDNAME_ID)
)
;



-- 
-- TABLE: LGSTCS_LCTN 
--

CREATE TABLE LGSTCS_LCTN(
    LGSTCS_LCTN_ID                    INTEGER           NOT NULL,
    LGSTCS_LCTN_TYP_ID                INTEGER           NOT NULL,
    LGSTCS_LCTN_OWNR_ID               INTEGER           NOT NULL,
    CNTRY_ID                          INTEGER           NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_4_ID         INTEGER           NOT NULL,
    MOST_RECENT_GEOCODE_SRD_DAY_ID    INTEGER           NOT NULL,
    GLBL_LGSTCS_LCTN_NUM              VARCHAR(50),
    LGSTCS_LCTN_NM                    VARCHAR(50)       NOT NULL,
    LGSTCS_LCTN_DESC                  VARCHAR(250)      NOT NULL,
    LGSTCS_LCTN_ADDR_LN_1             VARCHAR(100),
    LGSTCS_LCTN_ADDR_LN_2             VARCHAR(100),
    LGSTCS_LCTN_ADDR_STE              VARCHAR(100),
    LGSTCS_LCTN_ADDR_CTY              VARCHAR(100),
    LGSTCS_LCTN_ADDR_ST               VARCHAR(100)      NOT NULL,
    LGSTCS_LCTN_ADDR_PSTL_CD          VARCHAR(100),
    LGSTCS_LCTN_ADDR_PRVNC            VARCHAR(100),
    LGSTCS_LCTN_ADDR_CNTRY            VARCHAR(100)      NOT NULL,
    LGSTCS_LCTN_SPCFC_INTRNL_PLACE    VARCHAR(100)      NOT NULL,
    LGSTCS_LCTN_URL                   VARCHAR(255),
    LGSTCS_LCTN_LAT                   DECIMAL(11, 8)    NOT NULL,
    LGSTCS_LCTN_LNG                   DECIMAL(11, 8)    NOT NULL,
    LGSTCS_LCTN_CNTCT_NM              VARCHAR(50)       NOT NULL,
    LGSTCS_LCTN_CNTCT_EML             VARCHAR(255),
    IS_ADDRBL_YNFLG                   CHAR(1)           NOT NULL,
    IS_RDC_YNFLG                      CHAR(1)           NOT NULL,
    IS_CMS_YNFLG                      CHAR(1)           NOT NULL,
    PRIMARY KEY (LGSTCS_LCTN_ID)
)
;



-- 
-- TABLE: LGSTCS_LCTN_OWNR 
--

CREATE TABLE LGSTCS_LCTN_OWNR(
    LGSTCS_LCTN_OWNR_ID        INTEGER        NOT NULL,
    LGSTCS_LCTN_OWNR_TYP_ID    INTEGER        NOT NULL,
    LGSTCS_LCTN_OWNR_ORG_ID    INTEGER        NOT NULL,
    LGSTCS_LCTN_OWNR_NM        VARCHAR(50)    NOT NULL,
    LGSTCS_LCTN_OWNR_DESC      VARCHAR(50)    NOT NULL,
    PRIMARY KEY (LGSTCS_LCTN_OWNR_ID)
)
;



-- 
-- TABLE: LGSTCS_LCTN_OWNR_TYP 
--

CREATE TABLE LGSTCS_LCTN_OWNR_TYP(
    LGSTCS_LCTN_OWNR_TYP_ID      INTEGER        NOT NULL,
    LGSTCS_LCTN_OWNR_TYP_NM      VARCHAR(50)    NOT NULL,
    LGSTCS_LCTN_OWNR_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (LGSTCS_LCTN_OWNR_TYP_ID)
)
;



-- 
-- TABLE: LGSTCS_LCTN_TYP 
--

CREATE TABLE LGSTCS_LCTN_TYP(
    LGSTCS_LCTN_TYP_ID      INTEGER        NOT NULL,
    LGSTCS_LCTN_TYP_NM      VARCHAR(50)    NOT NULL,
    LGSTCS_LCTN_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (LGSTCS_LCTN_TYP_ID)
)
;



-- 
-- TABLE: LGSTCS_VSSL 
--

CREATE TABLE LGSTCS_VSSL(
    LGSTCS_VSSL_ID         INTEGER        NOT NULL,
    LGSTCS_VSSL_OWNR_ID    INTEGER        NOT NULL,
    LGSTCS_VSSL_NM         VARCHAR(50)    NOT NULL,
    LGSTCS_VSSL_DSGNTN     VARCHAR(50)    NOT NULL,
    LGSTCS_VSSL_DESC       VARCHAR(50)    NOT NULL,
    PRIMARY KEY (LGSTCS_VSSL_ID)
)
;



-- 
-- TABLE: LGSTCS_VSSL_OWNR 
--

CREATE TABLE LGSTCS_VSSL_OWNR(
    LGSTCS_VSSL_OWNR_ID      INTEGER        NOT NULL,
    LGSTCS_VSSL_OWNR_NM      VARCHAR(50)    NOT NULL,
    LGSTCS_VSSL_OWNR_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (LGSTCS_VSSL_OWNR_ID)
)
;



-- 
-- TABLE: LNR_UOM 
--

CREATE TABLE LNR_UOM(
    LNR_UOM_ID      INTEGER        NOT NULL,
    LNR_UOM_NM      VARCHAR(50)    NOT NULL,
    LNR_UOM_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (LNR_UOM_ID)
)
;



-- 
-- TABLE: MEASUREMENT_AND_EVALUATION_MSR 
--

CREATE TABLE MEASUREMENT_AND_EVALUATION_MSR(
    MEASUREMENT_AND_EVALUATION_MSR_ID        INTEGER         NOT NULL,
    MEASUREMENT_AND_EVALUATION_MSR_TYP_ID    INTEGER         NOT NULL,
    MEASUREMENT_AND_EVALUATION_OBJCTV_ID     INTEGER         NOT NULL,
    MEASUREMENT_AND_EVALUATION_MSR_NM        VARCHAR(50)     NOT NULL,
    MEASUREMENT_AND_EVALUATION_MSR_NUM       INTEGER         NOT NULL,
    MEASUREMENT_AND_EVALUATION_MSR_DESC      VARCHAR(250)    NOT NULL,
    PRIMARY KEY (MEASUREMENT_AND_EVALUATION_MSR_ID)
)
;



-- 
-- TABLE: MEASUREMENT_AND_EVALUATION_MSR_TYP 
--

CREATE TABLE MEASUREMENT_AND_EVALUATION_MSR_TYP(
    MEASUREMENT_AND_EVALUATION_MSR_TYP_ID      INTEGER        NOT NULL,
    MEASUREMENT_AND_EVALUATION_MSR_TYP_NM      VARCHAR(50)    NOT NULL,
    MEASUREMENT_AND_EVALUATION_MSR_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (MEASUREMENT_AND_EVALUATION_MSR_TYP_ID)
)
;



-- 
-- TABLE: MEASUREMENT_AND_EVALUATION_OBJCTV 
--

CREATE TABLE MEASUREMENT_AND_EVALUATION_OBJCTV(
    MEASUREMENT_AND_EVALUATION_OBJCTV_ID      INTEGER        NOT NULL,
    MEASUREMENT_AND_EVALUATION_OBJCTV_NM      VARCHAR(50)    NOT NULL,
    MEASUREMENT_AND_EVALUATION_OBJCTV_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (MEASUREMENT_AND_EVALUATION_OBJCTV_ID)
)
;



-- 
-- TABLE: MEASUREMENT_AND_EVALUATION_RPRT_FC 
--

CREATE TABLE MEASUREMENT_AND_EVALUATION_RPRT_FC(
    MEASUREMENT_AND_EVALUATION_RPRT_FC_ID     INTEGER          NOT NULL,
    CNTRY_ID                                  INTEGER          NOT NULL,
    IMPLMNTNG_PRTNR_ID                        INTEGER          NOT NULL,
    HLTH_ELMNT_ID                             INTEGER          NOT NULL,
    SPPLR_ID                                  INTEGER          NOT NULL,
    RPRT_SBMSSN_SRD_DAY_ID                    INTEGER          NOT NULL,
    RPRT_QTR_SRD_QTR_ID                       INTEGER          NOT NULL,
    MEASUREMENT_AND_EVALUATION_RPRT_CMMNTS    VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (MEASUREMENT_AND_EVALUATION_RPRT_FC_ID)
)
;



-- 
-- TABLE: MEASUREMENT_AND_EVALUATION_RPRT_ITM_FC 
--

CREATE TABLE MEASUREMENT_AND_EVALUATION_RPRT_ITM_FC(
    MEASUREMENT_AND_EVALUATION_RPRT_ITM_FC_ID    INTEGER          NOT NULL,
    MEASUREMENT_AND_EVALUATION_RPRT_FC_ID        INTEGER          NOT NULL,
    MEASUREMENT_AND_EVALUATION_TGT_ID            INTEGER          NOT NULL,
    RPT_VAL                                      VARCHAR(250)     NOT NULL,
    RPRT_ITM_CMMNTS                              VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (MEASUREMENT_AND_EVALUATION_RPRT_ITM_FC_ID)
)
;



-- 
-- TABLE: MEASUREMENT_AND_EVALUATION_TGT 
--

CREATE TABLE MEASUREMENT_AND_EVALUATION_TGT(
    MEASUREMENT_AND_EVALUATION_TGT_ID    INTEGER          NOT NULL,
    MEASUREMENT_AND_EVALUATION_MSR_ID    INTEGER          NOT NULL,
    CNTRY_ID                             INTEGER          NOT NULL,
    IMPLMNTNG_PRTNR_ID                   INTEGER          NOT NULL,
    HLTH_ELMNT_ID                        INTEGER          NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID        INTEGER          NOT NULL,
    SPPLR_ID                             INTEGER          NOT NULL,
    OBJCTV_VLD_TO_SRD_DAY_ID             INTEGER          NOT NULL,
    OBJCTV_VLD_FROM_SRD_DAY_ID           INTEGER          NOT NULL,
    TGT_DESRED_VAL                       VARCHAR(250)     NOT NULL,
    TGT_PLUS_TOLERANCE_PCT               DECIMAL(4, 3)    NOT NULL,
    TGT_MINUS_TOLERANCE_PCT              DECIMAL(4, 3)    NOT NULL,
    PRIMARY KEY (MEASUREMENT_AND_EVALUATION_TGT_ID)
)
;



-- 
-- TABLE: MED_DVC_PRDCT_TYP 
--

CREATE TABLE MED_DVC_PRDCT_TYP(
    MED_DVC_PRDCT_TYP_ID      INTEGER        NOT NULL,
    MED_DVC_PRDCT_TYP_NM      VARCHAR(50)    NOT NULL,
    MED_DVC_PRDCT_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (MED_DVC_PRDCT_TYP_ID)
)
;



-- 
-- TABLE: MFR 
--

CREATE TABLE MFR(
    MFR_ID                INTEGER         NOT NULL,
    NAMEOFMANUFACTURER    VARCHAR(200)    NOT NULL,
    MANUFACTURERGLN       VARCHAR(50)     NOT NULL,
    MFR_DESC              VARCHAR(50)     NOT NULL,
    MFR_ADDR_LN_1         VARCHAR(100),
    MFR_ADDR_LN_2         VARCHAR(100),
    MFR_ADDR_STE          VARCHAR(100),
    MFR_ADDR_CTY          VARCHAR(100),
    MFR_ADDR_ST           VARCHAR(100)    NOT NULL,
    MFR_ADDR_PSTL_CD      VARCHAR(100),
    MFR_ADDR_PRVNC        VARCHAR(100),
    MFR_ADDR_CNTRY        VARCHAR(100)    NOT NULL,
    MFR_CNTCT_NM          VARCHAR(50)     NOT NULL,
    MFR_CNTCT_EML         VARCHAR(255),
    PRIMARY KEY (MFR_ID)
)
;



-- 
-- TABLE: MFR_PRDCT_LOT 
--

CREATE TABLE MFR_PRDCT_LOT(
    MFR_PRDCT_LOT_ID         INTEGER           NOT NULL,
    TRADE_ITM_ID             INTEGER           NOT NULL,
    MFR_ID                   INTEGER           NOT NULL,
    MFG_DT_SRD_DAY_ID        INTEGER           NOT NULL,
    EXP_DT_SRD_DAY_ID        INTEGER           NOT NULL,
    MFR_PRDCT_LOT_NUM        VARCHAR(255),
    MFR_PRDCT_LOT_TOT_QTY    DECIMAL(15, 2)    NOT NULL,
    PRIMARY KEY (MFR_PRDCT_LOT_ID)
)
;



-- 
-- TABLE: MFR_ST 
--

CREATE TABLE MFR_ST(
    MFR_ST_ID              INTEGER         NOT NULL,
    MFR_ID                 INTEGER         NOT NULL,
    CNTRY_ID               INTEGER         NOT NULL,
    MFR_ST_NM              VARCHAR(50)     NOT NULL,
    MFR_ST_DESC            VARCHAR(50)     NOT NULL,
    MFR_ST_ADDR_LN_1       VARCHAR(100),
    MFR_ST_ADDR_LN_2       VARCHAR(100),
    MFR_ST_ADDR_STE        VARCHAR(100),
    MFR_ST_ADDR_CTY        VARCHAR(100),
    MFR_ST_ADDR_ST         VARCHAR(100)    NOT NULL,
    MFR_ST_ADDR_PSTL_CD    VARCHAR(100),
    MFR_ST_ADDR_PRVNC      VARCHAR(100),
    MFR_ST_ADDR_CNTRY      VARCHAR(100)    NOT NULL,
    MFR_ST_CNTCT_NM        VARCHAR(50)     NOT NULL,
    MFR_ST_CNTCT_EML       VARCHAR(255),
    PRIMARY KEY (MFR_ST_ID)
)
;



-- 
-- TABLE: NONFOODINGREDIENT 
--

CREATE TABLE NONFOODINGREDIENT(
    NONFOODINGREDIENT_ID                           INTEGER           NOT NULL,
    TRADE_ITM_ID                                   INTEGER           NOT NULL,
    NONFOODINGREDIENT_SEQNUM                       SMALLINT          NOT NULL,
    NONFOODINGREDIENTNAME                          VARCHAR(500)      NOT NULL,
    ISINGREDIENTACTIVE                             VARCHAR(15),
    INGREDIENTSTRENGTH                             DECIMAL(10, 5),
    INGREDIENTSTRENGTH_MEASUREMENTUNITCODE         VARCHAR(80),
    INGREDIENTSTRENGTHBASIS                        DECIMAL(10, 5),
    INGREDIENTSTRENGTHBASIS_MEASUREMENTUNITCODE    VARCHAR(80),
    ISINGREDIENTGENERIC                            VARCHAR(15)       NOT NULL,
    NONFOODINGREDIENTOFCONCERNCODE                 VARCHAR(80)       NOT NULL,
    PRIMARY KEY (NONFOODINGREDIENT_ID)
)
;



-- 
-- TABLE: NTNL_PRDCT_ACTN_RQST_FC 
--

CREATE TABLE NTNL_PRDCT_ACTN_RQST_FC(
    NTNL_PRDCT_ACTN_RQST_FC_ID                   INTEGER          NOT NULL,
    NTNL_PRDCT_ACTN_RQST_TYP_ID                  INTEGER          NOT NULL,
    NTNL_PRDCT_ACTN_RQST_STAT_TYP_ID             INTEGER          NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID                INTEGER          NOT NULL,
    CNTRY_PRGRM_ID                               INTEGER          NOT NULL,
    CNTRY_ID                                     INTEGER          NOT NULL,
    NTNL_PRDCT_ACTN_RQST_SBMSSN_DT_SRD_DAY_ID    INTEGER          NOT NULL,
    NTNL_PRDCT_ACTN_RQST_APPRVL_DT_SRD_DAY_ID    INTEGER          NOT NULL,
    NTNL_PRDCT_ACTN_RQST_CLOSE_DT_SRD_DAY_ID     INTEGER          NOT NULL,
    REQUESTING_BI_USER_ID                        INTEGER          NOT NULL,
    NTNL_PRDCT_ACTN_RSLTN_TXT                    VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (NTNL_PRDCT_ACTN_RQST_FC_ID)
)
;



-- 
-- TABLE: NTNL_PRDCT_ACTN_RQST_STAT_TYP 
--

CREATE TABLE NTNL_PRDCT_ACTN_RQST_STAT_TYP(
    NTNL_PRDCT_ACTN_RQST_STAT_TYP_ID      INTEGER        NOT NULL,
    NTNL_PRDCT_ACTN_RQST_STAT_TYP_NM      VARCHAR(50)    NOT NULL,
    NTNL_PRDCT_ACTN_RQST_STAT_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (NTNL_PRDCT_ACTN_RQST_STAT_TYP_ID)
)
;



-- 
-- TABLE: NTNL_PRDCT_ACTN_RQST_TYP 
--

CREATE TABLE NTNL_PRDCT_ACTN_RQST_TYP(
    NTNL_PRDCT_ACTN_RQST_TYP_ID      INTEGER        NOT NULL,
    NTNL_PRDCT_ACTN_RQST_TYP_NM      VARCHAR(50)    NOT NULL,
    NTNL_PRDCT_ACTN_RQST_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (NTNL_PRDCT_ACTN_RQST_TYP_ID)
)
;



-- 
-- TABLE: NTNL_PRDCT_ACTN_RQST_UPDT_FC 
--

CREATE TABLE NTNL_PRDCT_ACTN_RQST_UPDT_FC(
    NTNL_PRDCT_ACTN_RQST_UPDT_FC_ID            INTEGER          NOT NULL,
    NTNL_PRDCT_ACTN_RQST_FC_ID                 INTEGER          NOT NULL,
    NTNL_PRDCT_ACTN_RQST_UPDT_TYP_ID           INTEGER          NOT NULL,
    NTNL_PRDCT_ACTN_RQST_UPDT_DT_SRD_DAY_ID    INTEGER          NOT NULL,
    UPDATING_BI_USER_ID                        INTEGER          NOT NULL,
    NTNL_PRDCT_ACTN_RQST_UPDT_TXT              VARCHAR(4000)    NOT NULL,
    NTNL_PRDCT_ACTN_RQST_UPDT_TMSTMP           TIME,
    PRIMARY KEY (NTNL_PRDCT_ACTN_RQST_UPDT_FC_ID)
)
;



-- 
-- TABLE: NTNL_PRDCT_ACTN_RQST_UPDT_TYP 
--

CREATE TABLE NTNL_PRDCT_ACTN_RQST_UPDT_TYP(
    NTNL_PRDCT_ACTN_RQST_UPDT_TYP_ID      INTEGER        NOT NULL,
    NTNL_PRDCT_ACTN_RQST_UPDT_TYP_NM      VARCHAR(50)    NOT NULL,
    NTNL_PRDCT_ACTN_RQST_UPDT_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (NTNL_PRDCT_ACTN_RQST_UPDT_TYP_ID)
)
;



-- 
-- TABLE: NTNL_PRDCT_CNSMPTN_FC 
--

CREATE TABLE NTNL_PRDCT_CNSMPTN_FC(
    NTNL_PRDCT_CNSMPTN_FC_ID               INTEGER           NOT NULL,
    PRDCT_CNSMPTN_TYP_ID                   INTEGER           NOT NULL,
    CNTRY_ID                               INTEGER           NOT NULL,
    CNTRY_PRGRM_ID                         INTEGER           NOT NULL,
    FC_ROW_TYP_ID                          INTEGER           NOT NULL,
    SPPLY_CHN_LVL_ID                       INTEGER           NOT NULL,
    LGSTCS_LCTN_ID                         INTEGER           NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID          INTEGER           NOT NULL,
    PRDCT_SUBCAT_LVL_2_ID                  INTEGER           NOT NULL,
    CNSMPTN_RPRT_DT_SRD_DAY_ID             INTEGER           NOT NULL,
    PRDCT_CNSMPTN_ALLCTN_MTH_SRC_MTH_ID    INTEGER           NOT NULL,
    PRDCT_CNSMPTN                          DECIMAL(15, 2)    NOT NULL,
    CYP_CNSMPTN                            DECIMAL(11, 2)    NOT NULL,
    PRIMARY KEY (NTNL_PRDCT_CNSMPTN_FC_ID)
)
;



-- 
-- TABLE: NTNL_PRDCT_DMND_PLN_FC 
--

CREATE TABLE NTNL_PRDCT_DMND_PLN_FC(
    NTNL_PRDCT_DMND_PLN_FC_ID           INTEGER    NOT NULL,
    CNTRY_ID                            INTEGER    NOT NULL,
    CNTRY_PRGRM_ID                      INTEGER    NOT NULL,
    FC_ROW_TYP_ID                       INTEGER    NOT NULL,
    SPPLY_CHN_LVL_ID                    INTEGER    NOT NULL,
    LGSTCS_LCTN_ID                      INTEGER    NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID       INTEGER    NOT NULL,
    PRDCT_SUBCAT_LVL_2_ID               INTEGER    NOT NULL,
    SRD_DAY_ID                          INTEGER    NOT NULL,
    PRDCT_DMND_ALLCTN_MTH_SRD_MTH_ID    INTEGER    NOT NULL,
    TGT_MIN_MTHS_SOH                    INTEGER    NOT NULL,
    TGT_MAX_MTHS_SOH                    INTEGER    NOT NULL,
    PRIMARY KEY (NTNL_PRDCT_DMND_PLN_FC_ID)
)
;



-- 
-- TABLE: NTNL_RCT_FCAST_FC 
--

CREATE TABLE NTNL_RCT_FCAST_FC(
    NTNL_RCT_FCAST_FC_ID             INTEGER           NOT NULL,
    CNTRY_ID                         INTEGER           NOT NULL,
    CNTRY_PRGRM_ID                   INTEGER           NOT NULL,
    FC_ROW_TYP_ID                    INTEGER           NOT NULL,
    SPPLY_CHN_LVL_ID                 INTEGER           NOT NULL,
    LGSTCS_LCTN_ID                   INTEGER           NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID    INTEGER           NOT NULL,
    PRDCT_SUBCAT_LVL_2_ID            INTEGER           NOT NULL,
    FCAST_SBMSSN_DT_SRD_DAY_ID       INTEGER           NOT NULL,
    FCAST_BEGIN_SRD_MTH_ID           INTEGER           NOT NULL,
    FCAST_END_SRD_MTH_ID             INTEGER           NOT NULL,
    RPRT_PRD_TYP_ID                  INTEGER           NOT NULL,
    FCAST_AMT                        DECIMAL(15, 2)    NOT NULL,
    PRIMARY KEY (NTNL_RCT_FCAST_FC_ID)
)
;



-- 
-- TABLE: NTNL_SP_FC 
--

CREATE TABLE NTNL_SP_FC(
    NTNL_SP_FC_ID                    INTEGER           NOT NULL,
    SP_STAT_ID                       INTEGER           NOT NULL,
    PRCRNG_AGNCY_ID                  INTEGER           NOT NULL,
    CNTRY_ID                         INTEGER           NOT NULL,
    CNTRY_PRGRM_ID                   INTEGER           NOT NULL,
    CNTRY_PRCRMNT_BUREAU_ID          INTEGER           NOT NULL,
    DONR_OFFC_ID                     INTEGER           NOT NULL,
    FNDNG_SRC_ID                     INTEGER           NOT NULL,
    FNNCL_RPRT_CHRG_LCTN_ID          INTEGER           NOT NULL,
    FC_ROW_TYP_ID                    INTEGER           NOT NULL,
    SPPLY_CHN_LVL_ID                 INTEGER           NOT NULL,
    LGSTCS_LCTN_ID                   INTEGER           NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID    INTEGER           NOT NULL,
    PRDCT_SUBCAT_LVL_2_ID            INTEGER           NOT NULL,
    SP_SBMSSN_DT_SRD_DAY_ID          INTEGER           NOT NULL,
    AD_HOC_TRANS_DT_SRD_DAY_ID       INTEGER           NOT NULL,
    BI_USER_ID                       INTEGER           NOT NULL,
    RCT_DSRD_BY_SRD_MTH_ID           INTEGER           NOT NULL,
    SP_CNSTRNT_TYP_ID                INTEGER           NOT NULL,
    CRRNCY_ID                        INTEGER           NOT NULL,
    SP_ORDR_NUM                      VARCHAR(50)       NOT NULL,
    CRRNCY_EXCHNG_RT                 DECIMAL(18, 6),
    DSRD_PRDCT_QTY                   DECIMAL(15, 2)    NOT NULL,
    CNSTRND_PRDCT_QTY                DECIMAL(15, 2)    NOT NULL,
    CNSTRNT_RMRKS                    VARCHAR(4000)     NOT NULL,
    PRDCT_CST                        DECIMAL(12, 3)    NOT NULL,
    FRT_CST                          DECIMAL(12, 3)    NOT NULL,
    TOT_CST                          DECIMAL(12, 3)    NOT NULL,
    PRIMARY KEY (NTNL_SP_FC_ID)
)
;



-- 
-- TABLE: ORDR_LIN_STAT 
--

CREATE TABLE ORDR_LIN_STAT(
    ORDR_LIN_STAT_ID      INTEGER        NOT NULL,
    ORDR_LIN_STAT_NM      VARCHAR(50)    NOT NULL,
    ORDR_LIN_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (ORDR_LIN_STAT_ID)
)
;



-- 
-- TABLE: ORDR_STAT 
--

CREATE TABLE ORDR_STAT(
    ORDR_STAT_ID      INTEGER        NOT NULL,
    ORDR_STAT_NM      VARCHAR(50)    NOT NULL,
    ORDR_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (ORDR_STAT_ID)
)
;



-- 
-- TABLE: PACKAGINGTYPECODE 
--

CREATE TABLE PACKAGINGTYPECODE(
    PACKAGINGTYPECODE_ID      INTEGER        NOT NULL,
    PACKAGINGTYPECODE         VARCHAR(80)    NOT NULL,
    PACKAGINGTYPECODE_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PACKAGINGTYPECODE_ID)
)
;



-- 
-- TABLE: PKG_MARKED_LANGUAGE_CD 
--

CREATE TABLE PKG_MARKED_LANGUAGE_CD(
    PKG_MARKED_LANGUAGE_CD_ID      INTEGER        NOT NULL,
    PKG_MARKED_LANGUAGE_CD         VARCHAR(10)    NOT NULL,
    PKG_MARKED_LANGUAGE_CD_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PKG_MARKED_LANGUAGE_CD_ID)
)
;



-- 
-- TABLE: PMT_TRMS_TYP 
--

CREATE TABLE PMT_TRMS_TYP(
    PMT_TRMS_TYP_ID      INTEGER        NOT NULL,
    PMT_TRMS_TYP_NM      VARCHAR(50)    NOT NULL,
    PMT_TRMS_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PMT_TRMS_TYP_ID)
)
;



-- 
-- TABLE: PO_DLY_FC 
--

CREATE TABLE PO_DLY_FC(
    PO_DLY_FC_ID                    INTEGER          NOT NULL,
    PO_FC_ID                        INTEGER          NOT NULL,
    DT_DLY_STARTED_DT_SRD_DAY_ID    INTEGER,
    DT_DLY_CLRD_DT_SRD_DAY_ID       INTEGER,
    PO_DLY_TYP_ID                   INTEGER,
    PO_DLY_RSN_ID                   INTEGER,
    PO_DLY_DAY_CNT                  INTEGER          NOT NULL,
    PO_DLY_RMRKS                    VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (PO_DLY_FC_ID)
)
;



-- 
-- TABLE: PO_DLY_RSN 
--

CREATE TABLE PO_DLY_RSN(
    PO_DLY_RSN_ID      INTEGER        NOT NULL,
    PO_DLY_RSN_NM      VARCHAR(50)    NOT NULL,
    PO_DLY_RSN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PO_DLY_RSN_ID)
)
;



-- 
-- TABLE: PO_DLY_RSPNSBL_PRTY 
--

CREATE TABLE PO_DLY_RSPNSBL_PRTY(
    PO_DLY_RSPNSBL_PRTY_ID      INTEGER        NOT NULL,
    PO_DLY_RSPNSBL_PRTY_NM      VARCHAR(50)    NOT NULL,
    PO_DLY_RSPNSBL_PRTY_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PO_DLY_RSPNSBL_PRTY_ID)
)
;



-- 
-- TABLE: PO_DLY_TYP 
--

CREATE TABLE PO_DLY_TYP(
    PO_DLY_TYP_ID             INTEGER        NOT NULL,
    PO_DLY_RSPNSBL_PRTY_ID    INTEGER,
    PO_DLY_TYP_NM             VARCHAR(50)    NOT NULL,
    PO_DLY_TYP_DESC           VARCHAR(50)    NOT NULL,
    PO_DLY_ACCPTBL_YNFLG      CHAR(1)        NOT NULL,
    PRIMARY KEY (PO_DLY_TYP_ID)
)
;



-- 
-- TABLE: PO_DOC_CMPLTN_STAT 
--

CREATE TABLE PO_DOC_CMPLTN_STAT(
    PO_DOC_CMPLTN_STAT_ID      INTEGER        NOT NULL,
    PO_DOC_CMPLTN_STAT_NM      VARCHAR(50)    NOT NULL,
    PO_DOC_CMPLTN_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PO_DOC_CMPLTN_STAT_ID)
)
;



-- 
-- TABLE: PO_FC 
--

CREATE TABLE PO_FC(
    PO_FC_ID                            INTEGER           NOT NULL,
    PO_TYP_ID                           INTEGER           NOT NULL,
    PO_URGNCY_TYP_ID                    INTEGER           NOT NULL,
    PQ_FC_ID                            INTEGER           NOT NULL,
    PRCRNG_AGNCY_ID                     INTEGER           NOT NULL,
    CNTRY_ID                            INTEGER           NOT NULL,
    DONR_OFFC_ID                        INTEGER           NOT NULL,
    FNDNG_SRC_ID                        INTEGER           NOT NULL,
    SPPLR_ID                            INTEGER           NOT NULL,
    CNSGNE_ID                           INTEGER           NOT NULL,
    HLTH_ELMNT_ID                       INTEGER           NOT NULL,
    TSKORDR_ID                          INTEGER           NOT NULL,
    PPLN_STG_ID                         INTEGER           NOT NULL,
    SPPLY_CHN_FRMWRK_ID                 INTEGER,
    SRC_INCOTERM_ID                     INTEGER           NOT NULL,
    DSTNTN_INCOTERM_ID                  INTEGER           NOT NULL,
    PO_STAT_ID                          INTEGER,
    PPLN_ORDR_DISP_ID                   INTEGER           NOT NULL,
    PO_DOC_CMPLTN_STAT_ID               INTEGER           NOT NULL,
    SRC_LGSTCS_LCTN_ID                  INTEGER           NOT NULL,
    DSTNTN_LGSTCS_LCTN_ID               INTEGER           NOT NULL,
    PO_DT_SRD_DAY_ID                    INTEGER           NOT NULL,
    BLNKT_PO_VLD_FROM_DT_SRD_DAY_ID     INTEGER           NOT NULL,
    BLNKT_PO_VLD_TO_DT_SRD_DAY_ID       INTEGER           NOT NULL,
    PRJCTD_DLVRY_DT_SRD_DAY_ID          INTEGER           NOT NULL,
    VNDR_PRMSD_BY_DT_SRD_DAY_ID         INTEGER           NOT NULL,
    PRE_SHPMNT_INSPCTN_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    ESTMTD_RDY_FOR_FRT_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    EXPRT_DOC_RCVD_DT_SRD_DAY_ID        INTEGER           NOT NULL,
    PO_CRTD_DT_SRD_DAY_ID               INTEGER           NOT NULL,
    PO_RCVD_DT_SRD_DAY_ID               INTEGER           NOT NULL,
    PO_SNT_DT_SRD_DAY_ID                INTEGER           NOT NULL,
    PLND_IN_CNTRY_DT_SRD_DAY_ID         INTEGER           NOT NULL,
    PLND_DLVRY_DT_SRD_DAY_ID            INTEGER           NOT NULL,
    SHPPNG_MTHD_ID                      INTEGER           NOT NULL,
    FRT_FWDR_ID                         INTEGER           NOT NULL,
    CNTRY_PRGRM_ID                      INTEGER           NOT NULL,
    CRRNCY_ID                           INTEGER           NOT NULL,
    PMT_TRMS_TYP_ID                     INTEGER           NOT NULL,
    PO_NUM                              VARCHAR(50),
    ORDR_IN_LN_WITH_SP_YNFLG            CHAR(1)           NOT NULL,
    PRTL_DLVRY_YNFLG                    CHAR(1)           NOT NULL,
    HDR_DISC_PCTG                       DECIMAL(4, 3)     NOT NULL,
    HDR_DISC_VAL                        DECIMAL(12, 3)    NOT NULL,
    TOT_LIN_DISC_VAL                    DECIMAL(12, 3)    NOT NULL,
    FRT_EXPNS                           DECIMAL(12, 3)    NOT NULL,
    INSRNC_EXPNS                        DECIMAL(12, 3)    NOT NULL,
    QA_EXPNS                            DECIMAL(12, 3)    NOT NULL,
    SCRTY_EXPNS                         DECIMAL(12, 3)    NOT NULL,
    OTHR_HDR_EXPNSS                     DECIMAL(12, 3)    NOT NULL,
    PO_RMRKS                            VARCHAR(4000)     NOT NULL,
    PRIMARY KEY (PO_FC_ID)
)
;



-- 
-- TABLE: PO_HDR_EXPNS_FC 
--

CREATE TABLE PO_HDR_EXPNS_FC(
    PO_HDR_EXPNS_FC_ID     INTEGER           NOT NULL,
    PO_FC_ID               INTEGER           NOT NULL,
    PO_HDR_EXPNS_TYP_ID    INTEGER           NOT NULL,
    EXPNS_VAL              DECIMAL(12, 3)    NOT NULL,
    EXPNS_DISC_PCTG        DECIMAL(4, 3)     NOT NULL,
    EXPNS_DISC_VAL         DECIMAL(12, 3)    NOT NULL,
    PRIMARY KEY (PO_HDR_EXPNS_FC_ID)
)
;



-- 
-- TABLE: PO_HDR_EXPNS_TYP 
--

CREATE TABLE PO_HDR_EXPNS_TYP(
    PO_HDR_EXPNS_TYP_ID      INTEGER        NOT NULL,
    PO_HDR_EXPNS_TYP_NM      VARCHAR(50)    NOT NULL,
    PO_HDR_EXPNS_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PO_HDR_EXPNS_TYP_ID)
)
;



-- 
-- TABLE: PO_KEY_INFO_TYP 
--

CREATE TABLE PO_KEY_INFO_TYP(
    PO_KEY_INFO_TYP_ID      INTEGER        NOT NULL,
    PO_KEY_INFO_TYP_NM      VARCHAR(50)    NOT NULL,
    PO_KEY_INFO_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PO_KEY_INFO_TYP_ID)
)
;



-- 
-- TABLE: PO_KIC_FC 
--

CREATE TABLE PO_KIC_FC(
    PO_KIC_FC_ID          INTEGER          NOT NULL,
    PO_FC_ID              INTEGER          NOT NULL,
    SRD_DAY_ID            INTEGER,
    PO_KEY_INFO_TYP_ID    INTEGER,
    PO_KIC_RSN_ID         INTEGER,
    PREV_VAL              VARCHAR(4000)    NOT NULL,
    CRRNT_VAL             VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (PO_KIC_FC_ID)
)
;



-- 
-- TABLE: PO_KIC_RSN 
--

CREATE TABLE PO_KIC_RSN(
    PO_KIC_RSN_ID      INTEGER        NOT NULL,
    PO_KIC_RSN_NM      VARCHAR(50)    NOT NULL,
    PO_KIC_RSN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PO_KIC_RSN_ID)
)
;



-- 
-- TABLE: PO_LIN_FC 
--

CREATE TABLE PO_LIN_FC(
    PO_LIN_FC_ID                        INTEGER           NOT NULL,
    PO_FC_ID                            INTEGER           NOT NULL,
    PQ_LIN_FC_ID                        INTEGER           NOT NULL,
    TRADE_ITM_ID                        INTEGER           NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID       INTEGER           NOT NULL,
    MFR_ID                              INTEGER           NOT NULL,
    FNDNG_SRC_ID                        INTEGER           NOT NULL,
    HLTH_ELMNT_ID                       INTEGER           NOT NULL,
    PO_LIN_STAT_ID                      INTEGER           NOT NULL,
    PO_LIN_STAT_RSN_ID                  INTEGER           NOT NULL,
    SRC_LGSTCS_LCTN_ID                  INTEGER           NOT NULL,
    DSTNTN_LGSTCS_LCTN_ID               INTEGER           NOT NULL,
    QTY_UOM_ID                          INTEGER           NOT NULL,
    SHPPNG_MTHD_ID                      INTEGER           NOT NULL,
    FRT_FWDR_ID                         INTEGER           NOT NULL,
    SRC_INCOTERM_ID                     INTEGER           NOT NULL,
    DSTNTN_INCOTERM_ID                  INTEGER           NOT NULL,
    SPPLY_CHN_FRMWRK_ID                 INTEGER           NOT NULL,
    ESTMTD_RDY_FOR_FRT_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    PLND_IN_CNTRY_DT_SRD_DAY_ID         INTEGER           NOT NULL,
    PLND_DLVRY_DT_SRD_DAY_ID            INTEGER           NOT NULL,
    PRJCTD_DLVRY_DT_SRD_DAY_ID          INTEGER           NOT NULL,
    PO_NUM                              VARCHAR(50)       NOT NULL,
    LIN_NUM                             INTEGER           NOT NULL,
    LIN_QTY                             DECIMAL(15, 2)    NOT NULL,
    LIN_EACH_QUALTITY                   DECIMAL(15, 2)    NOT NULL,
    LIN_VAL                             DECIMAL(12, 3),
    LIN_EXW_VAL                         DECIMAL(12, 3)    NOT NULL,
    LIN_DISC_PCTG                       DECIMAL(4, 3)     NOT NULL,
    LIN_DISC_VAL                        DECIMAL(12, 3)    NOT NULL,
    PO_LIN_CYP                          DECIMAL(11, 2)    NOT NULL,
    PRIMARY KEY (PO_LIN_FC_ID)
)
;



-- 
-- TABLE: PO_LIN_STAT 
--

CREATE TABLE PO_LIN_STAT(
    PO_LIN_STAT_ID      INTEGER        NOT NULL,
    PO_LIN_STAT_NM      VARCHAR(50)    NOT NULL,
    PO_LIN_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PO_LIN_STAT_ID)
)
;



-- 
-- TABLE: PO_LIN_STAT_RSN 
--

CREATE TABLE PO_LIN_STAT_RSN(
    PO_LIN_STAT_RSN_ID      INTEGER        NOT NULL,
    PO_LIN_STAT_RSN_NM      VARCHAR(50)    NOT NULL,
    PO_LIN_STAT_RSN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PO_LIN_STAT_RSN_ID)
)
;



-- 
-- TABLE: PO_MLSTN_FC 
--

CREATE TABLE PO_MLSTN_FC(
    PO_MLSTN_FC_ID            INTEGER          NOT NULL,
    PO_FC_ID                  INTEGER          NOT NULL,
    PO_LIN_FC_ID              INTEGER          NOT NULL,
    PO_MLSTN_DT_SRD_DAY_ID    INTEGER,
    PO_MLSTN_TYP_ID           INTEGER,
    PO_MLSTN_RSN_ID           INTEGER,
    PO_MLSTN_RMRKS            VARCHAR(4000)    NOT NULL,
    PO_MLSTN_RSN_RMRKS        VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (PO_MLSTN_FC_ID)
)
;



-- 
-- TABLE: PO_MLSTN_RSN 
--

CREATE TABLE PO_MLSTN_RSN(
    PO_MLSTN_RSN_ID      INTEGER        NOT NULL,
    PO_MLSTN_RSN_NM      VARCHAR(50)    NOT NULL,
    PO_MLSTN_RSN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PO_MLSTN_RSN_ID)
)
;



-- 
-- TABLE: PO_MLSTN_TYP 
--

CREATE TABLE PO_MLSTN_TYP(
    PO_MLSTN_TYP_ID      INTEGER        NOT NULL,
    PO_MLSTN_TYP_NM      VARCHAR(50)    NOT NULL,
    PO_MLSTN_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PO_MLSTN_TYP_ID)
)
;



-- 
-- TABLE: PO_STAT 
--

CREATE TABLE PO_STAT(
    PO_STAT_ID      INTEGER        NOT NULL,
    PO_STAT_NM      VARCHAR(50)    NOT NULL,
    PO_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PO_STAT_ID)
)
;



-- 
-- TABLE: PO_TYP 
--

CREATE TABLE PO_TYP(
    PO_TYP_ID      INTEGER         NOT NULL,
    PO_TYP_NM      VARCHAR(50)     NOT NULL,
    PO_TYP_DESC    VARCHAR(250)    NOT NULL,
    PRIMARY KEY (PO_TYP_ID)
)
;



-- 
-- TABLE: PO_URGNCY_TYP 
--

CREATE TABLE PO_URGNCY_TYP(
    PO_URGNCY_TYP_ID      INTEGER        NOT NULL,
    PO_URGNCY_TYP_NM      VARCHAR(50)    NOT NULL,
    PO_URGNCY_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PO_URGNCY_TYP_ID)
)
;



-- 
-- TABLE: PPLN_ORDR_DISP 
--

CREATE TABLE PPLN_ORDR_DISP(
    PPLN_ORDR_DISP_ID      INTEGER        NOT NULL,
    PPLN_ORDR_DISP_NM      VARCHAR(50)    NOT NULL,
    PPLN_ORDR_DISP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PPLN_ORDR_DISP_ID)
)
;



-- 
-- TABLE: PPLN_STG 
--

CREATE TABLE PPLN_STG(
    PPLN_STG_ID      INTEGER        NOT NULL,
    PPLN_STG_NM      VARCHAR(50)    NOT NULL,
    PPLN_STG_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PPLN_STG_ID)
)
;



-- 
-- TABLE: PQ_DLY_FC 
--

CREATE TABLE PQ_DLY_FC(
    PQ_DLY_FC_ID                 INTEGER          NOT NULL,
    PQ_FC_ID                     INTEGER          NOT NULL,
    DT_DLY_STARTED_SRD_DAY_ID    INTEGER          NOT NULL,
    DT_DLY_CLRD_SRD_DAY_ID       INTEGER          NOT NULL,
    PQ_DLY_TYP_ID                INTEGER          NOT NULL,
    PQ_DLY_RSN_ID                INTEGER          NOT NULL,
    PQ_DLY_DAY_CNT               INTEGER          NOT NULL,
    PQ_DLY_RMRKS                 VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (PQ_DLY_FC_ID)
)
;



-- 
-- TABLE: PQ_DLY_RSN 
--

CREATE TABLE PQ_DLY_RSN(
    PQ_DLY_RSN_ID      INTEGER        NOT NULL,
    PQ_DLY_RSN_NM      VARCHAR(50)    NOT NULL,
    PQ_DLY_RSN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PQ_DLY_RSN_ID)
)
;



-- 
-- TABLE: PQ_DLY_RSPNSBL_PRTY 
--

CREATE TABLE PQ_DLY_RSPNSBL_PRTY(
    PQ_DLY_RSPNSBL_PRTY_ID      INTEGER        NOT NULL,
    PQ_DLY_RSPNSBL_PRTY_NM      VARCHAR(50)    NOT NULL,
    PQ_DLY_RSPNSBL_PRTY_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PQ_DLY_RSPNSBL_PRTY_ID)
)
;



-- 
-- TABLE: PQ_DLY_TYP 
--

CREATE TABLE PQ_DLY_TYP(
    PQ_DLY_TYP_ID             INTEGER          NOT NULL,
    PQ_DLY_RSPNSBL_PRTY_ID    INTEGER          NOT NULL,
    PQ_DLY_TYP_NM             VARCHAR(50)      NOT NULL,
    PQ_DLY_TYP_DESC           VARCHAR(50)      NOT NULL,
    PQ_DLY_RMRKS              VARCHAR(4000)    NOT NULL,
    PR_DLY_ACCPTBL_YNFLG      CHAR(1)          NOT NULL,
    PRIMARY KEY (PQ_DLY_TYP_ID)
)
;



-- 
-- TABLE: PQ_DOC_CMPLTN_STAT 
--

CREATE TABLE PQ_DOC_CMPLTN_STAT(
    PQ_DOC_CMPLTN_STAT_ID      INTEGER        NOT NULL,
    PQ_DOC_CMPLTN_STAT_NM      VARCHAR(50)    NOT NULL,
    PQ_DOC_CMPLTN_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PQ_DOC_CMPLTN_STAT_ID)
)
;



-- 
-- TABLE: PQ_FC 
--

CREATE TABLE PQ_FC(
    PQ_FC_ID                         INTEGER           NOT NULL,
    PQ_TYP_ID                        INTEGER           NOT NULL,
    PQ_SRC_ID                        INTEGER,
    PQ_URGNCY_TYP_ID                 INTEGER,
    PR_FC_ID                         INTEGER           NOT NULL,
    CNTRY_ID                         INTEGER           NOT NULL,
    DONR_OFFC_ID                     INTEGER           NOT NULL,
    SPPLR_ID                         INTEGER           NOT NULL,
    HLTH_ELMNT_ID                    INTEGER           NOT NULL,
    TSKORDR_ID                       INTEGER           NOT NULL,
    PPLN_STG_ID                      INTEGER           NOT NULL,
    SPPLY_CHN_FRMWRK_ID              INTEGER           NOT NULL,
    PQ_STAT_ID                       INTEGER           NOT NULL,
    PQ_RSPNS_ID                      INTEGER           NOT NULL,
    PPLN_ORDR_DISP_ID                INTEGER           NOT NULL,
    PQ_DOC_CMPLTN_STAT_ID            INTEGER           NOT NULL,
    SRC_LGSTCS_LCTN_ID               INTEGER           NOT NULL,
    DSTNTN_LGSTCS_LCTN_ID            INTEGER           NOT NULL,
    INCOTERM_ID                      INTEGER           NOT NULL,
    PQ_DT_SRD_DAY_ID                 INTEGER           NOT NULL,
    STKOUT_DT_SRD_DAY_ID             INTEGER           NOT NULL,
    PQ_ESTMTD_RDY_DT_SRD_DAY_ID      INTEGER           NOT NULL,
    PQ_EXP_DT_SRD_DAY_ID             INTEGER           NOT NULL,
    PQ_SNT_DT_SRD_DAY_ID             INTEGER           NOT NULL,
    PQ_RSPNS_DT_SRD_DAY_ID           INTEGER           NOT NULL,
    PQ_FNL_INVC_SNT_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    PQ_PRCD_TO_ORDR_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    SHPPNG_MTHD_ID                   INTEGER           NOT NULL,
    FRT_FWDR_ID                      INTEGER           NOT NULL,
    CNTRY_PRGRM_ID                   INTEGER           NOT NULL,
    CRRNCY_ID                        INTEGER,
    PMT_TRMS_TYP_ID                  INTEGER           NOT NULL,
    PQ_NUM                           VARCHAR(50)       NOT NULL,
    ORDR_IN_LN_WITH_SP_YNFLG         CHAR(1)           NOT NULL,
    CRRNCY_EXCHNG_RT                 DECIMAL(18, 6),
    HDR_DISC_PCTG                    DECIMAL(4, 3)     NOT NULL,
    HDR_DISC_VAL                     DECIMAL(12, 3)    NOT NULL,
    TOT_LIN_DISC_VAL                 DECIMAL(12, 3)    NOT NULL,
    FRT_EXPNS                        DECIMAL(12, 3)    NOT NULL,
    INSRNC_EXPNS                     DECIMAL(12, 3)    NOT NULL,
    QA_EXPNS                         DECIMAL(12, 3)    NOT NULL,
    SCRTY_EXPNS                      DECIMAL(12, 3)    NOT NULL,
    OTHR_HDR_EXPNSS                  DECIMAL(12, 3)    NOT NULL,
    PQ_RSN                           VARCHAR(4000)     NOT NULL,
    PQ_RMRKS                         VARCHAR(4000)     NOT NULL,
    PQ_INVC_FNL_CMMNTS               VARCHAR(4000)     NOT NULL,
    PQ_RSPNS_CMMNTS                  VARCHAR(4000)     NOT NULL,
    PRIMARY KEY (PQ_FC_ID)
)
;



-- 
-- TABLE: PQ_HDR_EXPNS_FC 
--

CREATE TABLE PQ_HDR_EXPNS_FC(
    PQ_HDR_EXPNS_FC_ID     INTEGER           NOT NULL,
    PQ_FC_ID               INTEGER           NOT NULL,
    PQ_HDR_EXPNS_TYP_ID    INTEGER           NOT NULL,
    EXPNS_VAL              DECIMAL(12, 3)    NOT NULL,
    EXPNS_DISC_PCTG        DECIMAL(4, 3)     NOT NULL,
    EXPNS_DISC_VAL         DECIMAL(12, 3)    NOT NULL,
    PRIMARY KEY (PQ_HDR_EXPNS_FC_ID)
)
;



-- 
-- TABLE: PQ_HDR_EXPNS_TYP 
--

CREATE TABLE PQ_HDR_EXPNS_TYP(
    PQ_HDR_EXPNS_TYP_ID      INTEGER        NOT NULL,
    PQ_HDR_EXPNS_TYP_NM      VARCHAR(50)    NOT NULL,
    PQ_HDR_EXPNS_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PQ_HDR_EXPNS_TYP_ID)
)
;



-- 
-- TABLE: PQ_KEY_INFO_TYP 
--

CREATE TABLE PQ_KEY_INFO_TYP(
    PQ_KEY_INFO_TYP_ID      INTEGER        NOT NULL,
    PQ_KEY_INFO_TYP_NM      VARCHAR(50)    NOT NULL,
    PQ_KEY_INFO_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PQ_KEY_INFO_TYP_ID)
)
;



-- 
-- TABLE: PQ_KIC_FC 
--

CREATE TABLE PQ_KIC_FC(
    PQ_KIC_FC_ID          INTEGER          NOT NULL,
    PQ_FC_ID              INTEGER          NOT NULL,
    SRD_DAY_ID            INTEGER          NOT NULL,
    PQ_KEY_INFO_TYP_ID    INTEGER          NOT NULL,
    PQ_KIC_RSN_ID         INTEGER          NOT NULL,
    PREV_VAL              VARCHAR(4000)    NOT NULL,
    CRRNT_VAL             VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (PQ_KIC_FC_ID)
)
;



-- 
-- TABLE: PQ_KIC_RSN 
--

CREATE TABLE PQ_KIC_RSN(
    PQ_KIC_RSN_ID      INTEGER        NOT NULL,
    PQ_KIC_RSN_NM      VARCHAR(50)    NOT NULL,
    PQ_KIC_RSN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PQ_KIC_RSN_ID)
)
;



-- 
-- TABLE: PQ_LIN_FC 
--

CREATE TABLE PQ_LIN_FC(
    PQ_LIN_FC_ID                     INTEGER           NOT NULL,
    PQ_FC_ID                         INTEGER           NOT NULL,
    PR_LIN_FC_ID                     INTEGER           NOT NULL,
    FNDNG_SRC_ID                     INTEGER           NOT NULL,
    HLTH_ELMNT_ID                    INTEGER           NOT NULL,
    TRADE_ITM_ID                     INTEGER           NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID    INTEGER           NOT NULL,
    MFR_ID                           INTEGER           NOT NULL,
    PQ_LIN_STAT_ID                   INTEGER           NOT NULL,
    PQ_LIN_STAT_RSN_ID               INTEGER           NOT NULL,
    SRC_LGSTCS_LCTN_ID               INTEGER           NOT NULL,
    DSTNTN_LGSTCS_LCTN_ID            INTEGER           NOT NULL,
    QTY_UOM_ID                       INTEGER           NOT NULL,
    PQ_DT_SRD_DAY_ID                 INTEGER           NOT NULL,
    STKOUT_DT_SRD_DAY_ID             INTEGER           NOT NULL,
    SHPPNG_MTHD_ID                   INTEGER           NOT NULL,
    FRT_FWDR_ID                      INTEGER           NOT NULL,
    SRC_INCOTERM_ID                  INTEGER           NOT NULL,
    DSTNTN_INCOTERM_ID               INTEGER           NOT NULL,
    SPPLY_CHN_FRMWRK_ID              INTEGER           NOT NULL,
    SPPLR_ID                         INTEGER           NOT NULL,
    LIN_NUM                          INTEGER           NOT NULL,
    LIN_QTY                          DECIMAL(15, 2)    NOT NULL,
    LIN_EACH_QTY                     DECIMAL(15, 2)    NOT NULL,
    LIN_UNIT_PRC                     DECIMAL(12, 3),
    LIN_VAL                          DECIMAL(12, 3)    NOT NULL,
    LIN_EXW_VAL                      DECIMAL(12, 3)    NOT NULL,
    LIN_DISC_PCTG                    DECIMAL(4, 3)     NOT NULL,
    LIN_DISC_VAL                     DECIMAL(12, 3)    NOT NULL,
    PRIMARY KEY (PQ_LIN_FC_ID)
)
;



-- 
-- TABLE: PQ_LIN_STAT 
--

CREATE TABLE PQ_LIN_STAT(
    PQ_LIN_STAT_ID      INTEGER        NOT NULL,
    PQ_LIN_STAT_NM      VARCHAR(50)    NOT NULL,
    PQ_LIN_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PQ_LIN_STAT_ID)
)
;



-- 
-- TABLE: PQ_LIN_STAT_RSN 
--

CREATE TABLE PQ_LIN_STAT_RSN(
    PQ_LIN_STAT_RSN_ID      INTEGER        NOT NULL,
    PQ_LIN_STAT_RSN_NM      VARCHAR(50)    NOT NULL,
    PQ_LIN_STAT_RSN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PQ_LIN_STAT_RSN_ID)
)
;



-- 
-- TABLE: PQ_MLSTN_FC 
--

CREATE TABLE PQ_MLSTN_FC(
    PQ_MLSTN_FC_ID            INTEGER          NOT NULL,
    PQ_FC_ID                  INTEGER          NOT NULL,
    PQ_LIN_FC_ID              INTEGER          NOT NULL,
    PQ_MLSTN_DT_SRD_DAY_ID    INTEGER          NOT NULL,
    PQ_MLSTN_TYP_ID           INTEGER          NOT NULL,
    PQ_MLSTN_RSN_ID           INTEGER          NOT NULL,
    PQ_MLSTN_RMRKS            VARCHAR(4000)    NOT NULL,
    PQ_MLSTN_RSN_RMRKS        VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (PQ_MLSTN_FC_ID)
)
;



-- 
-- TABLE: PQ_MLSTN_RSN 
--

CREATE TABLE PQ_MLSTN_RSN(
    PQ_MLSTN_RSN_ID      INTEGER        NOT NULL,
    PQ_MLSTN_RSN_NM      VARCHAR(50)    NOT NULL,
    PQ_MLSTN_RSN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PQ_MLSTN_RSN_ID)
)
;



-- 
-- TABLE: PQ_MLSTN_TYP 
--

CREATE TABLE PQ_MLSTN_TYP(
    PQ_MLSTN_TYP_ID      INTEGER        NOT NULL,
    PQ_MLSTN_TYP_NM      VARCHAR(50)    NOT NULL,
    PQ_MLSTN_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PQ_MLSTN_TYP_ID)
)
;



-- 
-- TABLE: PQ_RSPNS 
--

CREATE TABLE PQ_RSPNS(
    PQ_RSPNS_ID      INTEGER        NOT NULL,
    PQ_RSPNS_NM      VARCHAR(50)    NOT NULL,
    PQ_RSPNS_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PQ_RSPNS_ID)
)
;



-- 
-- TABLE: PQ_SRC 
--

CREATE TABLE PQ_SRC(
    PQ_SRC_ID      INTEGER        NOT NULL,
    PQ_SRC_NM      VARCHAR(50)    NOT NULL,
    PQ_SRC_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PQ_SRC_ID)
)
;



-- 
-- TABLE: PQ_STAT 
--

CREATE TABLE PQ_STAT(
    PQ_STAT_ID      INTEGER        NOT NULL,
    PQ_STAT_NM      VARCHAR(50)    NOT NULL,
    PQ_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PQ_STAT_ID)
)
;



-- 
-- TABLE: PQ_TYP 
--

CREATE TABLE PQ_TYP(
    PQ_TYP_ID      INTEGER        NOT NULL,
    PQ_TYP_NM      VARCHAR(50)    NOT NULL,
    PQ_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PQ_TYP_ID)
)
;



-- 
-- TABLE: PQ_URGNCY_TYP 
--

CREATE TABLE PQ_URGNCY_TYP(
    PQ_URGNCY_TYP_ID      INTEGER        NOT NULL,
    EMRGNCY_TYP_ID        INTEGER,
    PQ_URGNCY_TYP_NM      VARCHAR(50)    NOT NULL,
    PQ_URGNCY_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PQ_URGNCY_TYP_ID)
)
;



-- 
-- TABLE: PR_DLY_FC 
--

CREATE TABLE PR_DLY_FC(
    PR_DLY_FC_ID                 INTEGER          NOT NULL,
    PR_FC_ID                     INTEGER          NOT NULL,
    DT_DLY_STARTED_SRD_DAY_ID    INTEGER          NOT NULL,
    DT_DLY_CLRD_SRD_DAY_ID       INTEGER          NOT NULL,
    PR_DLY_TYP_ID                INTEGER          NOT NULL,
    PR_DLY_RSN_ID                INTEGER          NOT NULL,
    PR_DLY_DAY_CNT               INTEGER          NOT NULL,
    PR_DLY_RMRKS                 VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (PR_DLY_FC_ID)
)
;



-- 
-- TABLE: PR_DLY_RSN 
--

CREATE TABLE PR_DLY_RSN(
    PR_DLY_RSN_ID      INTEGER        NOT NULL,
    PR_DLY_RSN_NM      VARCHAR(50)    NOT NULL,
    PR_DLY_RSN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PR_DLY_RSN_ID)
)
;



-- 
-- TABLE: PR_DLY_RSPNSBL_PRTY 
--

CREATE TABLE PR_DLY_RSPNSBL_PRTY(
    PR_DLY_RSPNSBL_PRTY_ID      INTEGER        NOT NULL,
    PR_DLY_RSPNSBL_PRTY_NM      VARCHAR(50)    NOT NULL,
    PR_DLY_RSPNSBL_PRTY_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PR_DLY_RSPNSBL_PRTY_ID)
)
;



-- 
-- TABLE: PR_DLY_TYP 
--

CREATE TABLE PR_DLY_TYP(
    PR_DLY_TYP_ID             INTEGER        NOT NULL,
    PR_DLY_RSPNSBL_PRTY_ID    INTEGER        NOT NULL,
    PR_DLY_TYP_NM             VARCHAR(50)    NOT NULL,
    PR_DLY_TYP_DESC           VARCHAR(50)    NOT NULL,
    PR_DLY_ACCPTBL_YNFLG      CHAR(1)        NOT NULL,
    PRIMARY KEY (PR_DLY_TYP_ID)
)
;



-- 
-- TABLE: PR_DOC_CMPLTN_STAT 
--

CREATE TABLE PR_DOC_CMPLTN_STAT(
    PR_DOC_CMPLTN_STAT_ID      INTEGER        NOT NULL,
    PR_DOC_CMPLTN_STAT_NM      VARCHAR(50)    NOT NULL,
    PR_DOC_CMPLTN_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PR_DOC_CMPLTN_STAT_ID)
)
;



-- 
-- TABLE: PR_FC 
--

CREATE TABLE PR_FC(
    PR_FC_ID                       INTEGER           NOT NULL,
    PR_TYP_ID                      INTEGER           NOT NULL,
    TSKORDR_ID                     INTEGER           NOT NULL,
    LGSTCS_LCTN_ID                 INTEGER           NOT NULL,
    PR_DOC_CMPLTN_STAT_ID          INTEGER           NOT NULL,
    PPLN_STG_ID                    INTEGER           NOT NULL,
    PPLN_ORDR_DISP_ID              INTEGER           NOT NULL,
    SPPLY_CHN_FRMWRK_ID            INTEGER           NOT NULL,
    CNTRY_PRGRM_ID                 INTEGER           NOT NULL,
    HLTH_ELMNT_ID                  INTEGER           NOT NULL,
    PR_STAT_ID                     INTEGER           NOT NULL,
    PR_URGNCY_TYP_ID               INTEGER           NOT NULL,
    PR_DT_SRD_DAY_ID               INTEGER           NOT NULL,
    PR_ESTMTD_RDY_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    PR_EXP_DT_SRD_DAY_ID           INTEGER           NOT NULL,
    PR_SNT_DT_SRD_DAY_ID           INTEGER           NOT NULL,
    PR_RSPNS_DT_SRD_DAY_ID         INTEGER           NOT NULL,
    FNDNG_SRC_ID                   INTEGER           NOT NULL,
    DONR_OFFC_ID                   INTEGER           NOT NULL,
    PRFRRD_INCOTERM_ID             INTEGER           NOT NULL,
    RQSTD_LEAD_TIME_DAYS           INTEGER           NOT NULL,
    PR_TOT_QTY                     INTEGER           NOT NULL,
    PR_TOT_VAL                     DECIMAL(12, 3)    NOT NULL,
    PR_RMRKS                       VARCHAR(4000)     NOT NULL,
    PRIMARY KEY (PR_FC_ID)
)
;



-- 
-- TABLE: PR_KEY_INFO_TYP 
--

CREATE TABLE PR_KEY_INFO_TYP(
    PR_KEY_INFO_TYP_ID      INTEGER        NOT NULL,
    PR_KEY_INFO_TYP_NM      VARCHAR(50)    NOT NULL,
    PR_KEY_INFO_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PR_KEY_INFO_TYP_ID)
)
;



-- 
-- TABLE: PR_KIC_FC 
--

CREATE TABLE PR_KIC_FC(
    PR_KIC_FC_ID          INTEGER          NOT NULL,
    PR_FC_ID              INTEGER          NOT NULL,
    SRD_DAY_ID            INTEGER          NOT NULL,
    PR_KEY_INFO_TYP_ID    INTEGER          NOT NULL,
    PR_KIC_RSN_ID         INTEGER          NOT NULL,
    PREV_VAL              VARCHAR(4000)    NOT NULL,
    CRRNT_VAL             VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (PR_KIC_FC_ID)
)
;



-- 
-- TABLE: PR_KIC_RSN 
--

CREATE TABLE PR_KIC_RSN(
    PR_KIC_RSN_ID      INTEGER        NOT NULL,
    PR_KIC_RSN_NM      VARCHAR(50)    NOT NULL,
    PR_KIC_RSN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PR_KIC_RSN_ID)
)
;



-- 
-- TABLE: PR_LIN_FC 
--

CREATE TABLE PR_LIN_FC(
    PR_LIN_FC_ID                     INTEGER           NOT NULL,
    PR_FC_ID                         INTEGER           NOT NULL,
    NTNL_SP_FC_ID                    INTEGER           NOT NULL,
    TRADE_ITM_ID                     INTEGER           NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID    INTEGER           NOT NULL,
    PRDCT_LN_ID                      INTEGER           NOT NULL,
    PRDCT_SUBCAT_LVL_3_ID            INTEGER           NOT NULL,
    PRDCT_SUBCAT_LVL_2_ID            INTEGER           NOT NULL,
    PRDCT_SUBCAT_LVL_1_ID            INTEGER           NOT NULL,
    PR_LIN_STAT_RSN_ID               INTEGER           NOT NULL,
    PR_LIN_STAT_ID                   INTEGER           NOT NULL,
    QTY_UOM_ID                       INTEGER           NOT NULL,
    PRFRRD_SHPPNG_MTHD_ID            INTEGER           NOT NULL,
    PRJCTD_STKOUT_DT_SRD_DAY_ID      INTEGER           NOT NULL,
    NEW_PR_DT_SRD_DAY_ID             INTEGER           NOT NULL,
    NEW_PR_APPROVED_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    NEW_PR_RJCTD_DT_SRD_DAY_ID       INTEGER           NOT NULL,
    NEW_PRDCT_ADDED_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    FNDNG_SRC_ID                     INTEGER           NOT NULL,
    LIN_RQSTD_QTY                    DECIMAL(15, 2)    NOT NULL,
    LIN_RQST_VAL                     DECIMAL(12, 3)    NOT NULL,
    NEW_PR_RQRD_YNFLG                CHAR(1)           NOT NULL,
    NEW_PR_NUM                       VARCHAR(250)      NOT NULL,
    NEW_PR_GNRC_NM                   VARCHAR(250)      NOT NULL,
    NEW_PR_STR                       VARCHAR(250)      NOT NULL,
    NEW_PR_PACK_SZ                   VARCHAR(250)      NOT NULL,
    NEW_PR_CMMNTS                    VARCHAR(4000)     NOT NULL,
    PRIMARY KEY (PR_LIN_FC_ID)
)
;



-- 
-- TABLE: PR_LIN_STAT 
--

CREATE TABLE PR_LIN_STAT(
    PR_LIN_STAT_ID      INTEGER        NOT NULL,
    PR_LIN_STAT_NM      VARCHAR(50)    NOT NULL,
    PR_LIN_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PR_LIN_STAT_ID)
)
;



-- 
-- TABLE: PR_LIN_STAT_RSN 
--

CREATE TABLE PR_LIN_STAT_RSN(
    PR_LIN_STAT_RSN_ID      INTEGER        NOT NULL,
    PR_LIN_STAT_RSN_NM      VARCHAR(50)    NOT NULL,
    PR_LIN_STAT_RSN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PR_LIN_STAT_RSN_ID)
)
;



-- 
-- TABLE: PR_MLSTN_FC 
--

CREATE TABLE PR_MLSTN_FC(
    PR_MLSTN_FC_ID            INTEGER          NOT NULL,
    PR_FC_ID                  INTEGER          NOT NULL,
    PR_LIN_FC_ID              INTEGER          NOT NULL,
    PR_MLSTN_DT_SRD_DAY_ID    INTEGER          NOT NULL,
    PR_MLSTN_TYP_ID           INTEGER          NOT NULL,
    PR_MLSTN_RSN_ID           INTEGER          NOT NULL,
    PR_MLSTN_RMRKS            VARCHAR(4000)    NOT NULL,
    PR_MLSTN_RSN_RMRKS        VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (PR_MLSTN_FC_ID)
)
;



-- 
-- TABLE: PR_MLSTN_RSN 
--

CREATE TABLE PR_MLSTN_RSN(
    PR_MLSTN_RSN_ID      INTEGER        NOT NULL,
    PR_MLSTN_RSN_NM      VARCHAR(50)    NOT NULL,
    PR_MLSTN_RSN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PR_MLSTN_RSN_ID)
)
;



-- 
-- TABLE: PR_MLSTN_TYP 
--

CREATE TABLE PR_MLSTN_TYP(
    PR_MLSTN_TYP_ID      INTEGER        NOT NULL,
    PR_MLSTN_TYP_NM      VARCHAR(50)    NOT NULL,
    PR_MLSTN_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PR_MLSTN_TYP_ID)
)
;



-- 
-- TABLE: PR_STAT 
--

CREATE TABLE PR_STAT(
    PR_STAT_ID      INTEGER        NOT NULL,
    PR_STAT_NM      VARCHAR(50)    NOT NULL,
    PR_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PR_STAT_ID)
)
;



-- 
-- TABLE: PR_TYP 
--

CREATE TABLE PR_TYP(
    PR_TYP_ID      INTEGER         NOT NULL,
    PR_TYP_NM      VARCHAR(50)     NOT NULL,
    PR_TYP_DESC    VARCHAR(150)    NOT NULL,
    PRIMARY KEY (PR_TYP_ID)
)
;



-- 
-- TABLE: PR_URGNCY_TYP 
--

CREATE TABLE PR_URGNCY_TYP(
    PR_URGNCY_TYP_ID          INTEGER        NOT NULL,
    EMRGNCY_TYP_ID            INTEGER        NOT NULL,
    PR_URGNCY_TYP_NM          VARCHAR(50)    NOT NULL,
    PRDCT_QT_RQST_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PR_URGNCY_TYP_ID)
)
;



-- 
-- TABLE: PRCHSNG_RSTRCTN_TYP 
--

CREATE TABLE PRCHSNG_RSTRCTN_TYP(
    PRCHSNG_RSTRCTN_TYP_ID      INTEGER        NOT NULL,
    PRCHSNG_RSTRCTN_TYP_NM      VARCHAR(50)    NOT NULL,
    PRCHSNG_RSTRCTN_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PRCHSNG_RSTRCTN_TYP_ID)
)
;



-- 
-- TABLE: PRCRMNT_FCAST_HDR 
--

CREATE TABLE PRCRMNT_FCAST_HDR(
    PRCRMNT_FCAST_HDR_ID         INTEGER         NOT NULL,
    RPRT_PRD_TYP_ID              INTEGER         NOT NULL,
    PRCRNG_AGNCY_ID              INTEGER         NOT NULL,
    CNTRY_ID                     INTEGER         NOT NULL,
    DONR_OFFC_ID                 INTEGER         NOT NULL,
    RPRT_SBMTTD_DT_SRD_DAY_ID    INTEGER         NOT NULL,
    RPRT_EFF_DT_SRD_DAY_ID       INTEGER         NOT NULL,
    RPRT_APPRVL_DT_SRD_DAY_ID    INTEGER         NOT NULL,
    PRCRMNT_FCAST_STAT_ID        INTEGER         NOT NULL,
    APPRVR_NM                    VARCHAR(250),
    PRIMARY KEY (PRCRMNT_FCAST_HDR_ID)
)
;



-- 
-- TABLE: PRCRMNT_FCAST_ITM 
--

CREATE TABLE PRCRMNT_FCAST_ITM(
    PRCRMNT_FCAST_ITM_ID                   INTEGER           NOT NULL,
    PRCRMNT_FCAST_HDR_ID                   INTEGER           NOT NULL,
    PRCRMNT_FCAST_ITM_VER_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    CNTRY_PRGRM_ID                         INTEGER           NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID          INTEGER           NOT NULL,
    PRJCTD_NEXT_SHPMNT_DT_SRD_DAY_ID       INTEGER           NOT NULL,
    QTY_UOM_ID                             INTEGER           NOT NULL,
    PRCRMNT_FCAST_ITM_URGNCY_TYP_ID        INTEGER           NOT NULL,
    PRCRMNT_FCAST_ITM_RSK_STAT_ID          INTEGER           NOT NULL,
    FCAST_ITM_VER_NUM                      SMALLINT          NOT NULL,
    FCAST_AMC                              DECIMAL(15, 2),
    FCAST_SOH                              DECIMAL(15, 2),
    FCAST_SOH_TGT_MAX                      DECIMAL(15, 2),
    FCAST_SOH_TGT_MIN                      DECIMAL(15, 2),
    FCAST_MOS                              DECIMAL(15, 2)    NOT NULL,
    FCAST_MOS_MIN                          DECIMAL(9, 2),
    FCAST_MOS_MAX                          DECIMAL(9, 2),
    PRCRMNT_PRBBLTY_PCTG                   DECIMAL(4, 3)     NOT NULL,
    PRCRMNT_PRBBLTY_CMMNTS                 VARCHAR(4000)     NOT NULL,
    DONR_NEEDED_YNFLG                      CHAR(1)           NOT NULL,
    PRIMARY KEY (PRCRMNT_FCAST_ITM_ID)
)
;



-- 
-- TABLE: PRCRMNT_FCAST_ITM_RSK_STAT 
--

CREATE TABLE PRCRMNT_FCAST_ITM_RSK_STAT(
    PRCRMNT_FCAST_ITM_RSK_STAT_ID      INTEGER        NOT NULL,
    PRCRMNT_FCAST_ITM_RSK_STAT_NM      VARCHAR(50)    NOT NULL,
    PRCRMNT_FCAST_ITM_RSK_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PRCRMNT_FCAST_ITM_RSK_STAT_ID)
)
;



-- 
-- TABLE: PRCRMNT_FCAST_ITM_URGNCY_TYP 
--

CREATE TABLE PRCRMNT_FCAST_ITM_URGNCY_TYP(
    PRCRMNT_FCAST_ITM_URGNCY_TYP_ID      INTEGER        NOT NULL,
    PRCRMNT_FCAST_ITM_URGNCY_TYP_NM      VARCHAR(50)    NOT NULL,
    PRCRMNT_FCAST_ITM_URGNCY_TYP_DESC    CHAR(10),
    PRIMARY KEY (PRCRMNT_FCAST_ITM_URGNCY_TYP_ID)
)
;



-- 
-- TABLE: PRCRMNT_FCAST_STAT 
--

CREATE TABLE PRCRMNT_FCAST_STAT(
    PRCRMNT_FCAST_STAT_ID      INTEGER        NOT NULL,
    PRCRMNT_FCAST_STAT_NM      VARCHAR(50)    NOT NULL,
    PRCRMNT_FCAST_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PRCRMNT_FCAST_STAT_ID)
)
;



-- 
-- TABLE: PRCRNG_AGNCY 
--

CREATE TABLE PRCRNG_AGNCY(
    PRCRNG_AGNCY_ID      INTEGER        NOT NULL,
    PRCRNG_AGNCY_NM      VARCHAR(50)    NOT NULL,
    PRCRNG_AGNCY_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PRCRNG_AGNCY_ID)
)
;



-- 
-- TABLE: PRDCT_CLSSFCTN_MASTER_1 
--

CREATE TABLE PRDCT_CLSSFCTN_MASTER_1(
    PRDCT_CLSSFCTN_MSTR_ID           INTEGER          NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_4_ID    INTEGER          NOT NULL,
    TRADE_ITM_BASE_UOM_ID            INTEGER          NOT NULL,
    DESCRIPTIONSHORT                 VARCHAR(35)      NOT NULL,
    PRDCT_LNG_NM                     VARCHAR(150)     NOT NULL,
    PRDCT_BRND_NM                    VARCHAR(150)     NOT NULL,
    PRDCT_DESC                       VARCHAR(250)     NOT NULL,
    PRDCT_UUID                       VARCHAR(36),
    CYP_FCTR                         DECIMAL(8, 4),
    PRIMARY KEY (PRDCT_CLSSFCTN_MSTR_ID)
)
;



-- 
-- TABLE: PRDCT_CLSSFCTN_TRCR_CMMDTY_INCLSN 
--

CREATE TABLE PRDCT_CLSSFCTN_TRCR_CMMDTY_INCLSN(
    PRDCT_CLSSFCTN_TRCR_CMMDTY_INCLSN_ID    INTEGER    NOT NULL,
    TRCR_CMMDTY_TYP_ID                      INTEGER    NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID           INTEGER    NOT NULL,
    PRIMARY KEY (PRDCT_CLSSFCTN_TRCR_CMMDTY_INCLSN_ID)
)
;



-- 
-- TABLE: PRDCT_CNSMPTN_TYP 
--

CREATE TABLE PRDCT_CNSMPTN_TYP(
    PRDCT_CNSMPTN_TYP_ID      INTEGER         NOT NULL,
    PRDCT_CNSMPTN_TYP_NM      VARCHAR(50)     NOT NULL,
    PRDCT_CNSMPTN_TYP_DESC    VARCHAR(250)    NOT NULL,
    PRIMARY KEY (PRDCT_CNSMPTN_TYP_ID)
)
;



-- 
-- TABLE: PRDCT_CRTFCN_ISSUING_AUTHORITY 
--

CREATE TABLE PRDCT_CRTFCN_ISSUING_AUTHORITY(
    PRDCT_CRTFCN_ISSUING_AUTHORITY_ID      INTEGER         NOT NULL,
    CERTIFICATIONAGENCY                    VARCHAR(200)    NOT NULL,
    PRDCT_CRTFCN_ISSUING_AUTHORITY_NM      VARCHAR(50)     NOT NULL,
    PRDCT_CRTFCN_ISSUING_AUTHORITY_DESC    VARCHAR(50)     NOT NULL,
    PRIMARY KEY (PRDCT_CRTFCN_ISSUING_AUTHORITY_ID)
)
;



-- 
-- TABLE: PRDCT_CRTFCN_TYP 
--

CREATE TABLE PRDCT_CRTFCN_TYP(
    PRDCT_CRTFCN_TYP_ID                  INTEGER         NOT NULL,
    PRDCT_CRTFCN_ISSUING_AUTHORITY_ID    INTEGER         NOT NULL,
    CERTIFICATIONSTANDARD                VARCHAR(200)    NOT NULL,
    PRDCT_CRTFCN_TYP_NM                  VARCHAR(50)     NOT NULL,
    PRDCT_CRTFCN_TYP_DESC                VARCHAR(50)     NOT NULL,
    PRIMARY KEY (PRDCT_CRTFCN_TYP_ID)
)
;



-- 
-- TABLE: PRDCT_HRRCHY 
--

CREATE TABLE PRDCT_HRRCHY(
    PRDCT_HRRCHY_ID         INTEGER         NOT NULL,
    PRDCT_HRRCHY_OWNR_ID    INTEGER         NOT NULL,
    PRDCT_HRRCHY_NM         VARCHAR(50)     NOT NULL,
    PRDCT_HRRCHY_DESC       VARCHAR(250)    NOT NULL,
    PRIMARY KEY (PRDCT_HRRCHY_ID)
)
;



-- 
-- TABLE: PRDCT_HRRCHY_INCLSN 
--

CREATE TABLE PRDCT_HRRCHY_INCLSN(
    PRDCT_HRRCHY_INCLSN_ID           INTEGER    NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID    INTEGER    NOT NULL,
    PRDCT_SUBCAT_LVL_3_ID            INTEGER    NOT NULL,
    PRIMARY KEY (PRDCT_HRRCHY_INCLSN_ID)
)
;



-- 
-- TABLE: PRDCT_HRRCHY_OWNR 
--

CREATE TABLE PRDCT_HRRCHY_OWNR(
    PRDCT_HRRCHY_OWNR_ID      INTEGER         NOT NULL,
    PRDCT_HRRCHY_OWNR_NM      VARCHAR(50)     NOT NULL,
    PRDCT_HRRCHY_OWNR_DESC    VARCHAR(250)    NOT NULL,
    PRIMARY KEY (PRDCT_HRRCHY_OWNR_ID)
)
;



-- 
-- TABLE: PRDCT_INTNDD_RLF_USE 
--

CREATE TABLE PRDCT_INTNDD_RLF_USE(
    PRDCT_INTNDD_RLF_USE_ID          INTEGER    NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID    INTEGER    NOT NULL,
    INTNDD_RLF_TYP_ID                INTEGER    NOT NULL,
    PRDCT_INTNDD_RLF_USE_ACTV_FLG    CHAR(1),
    PRIMARY KEY (PRDCT_INTNDD_RLF_USE_ID)
)
;



-- 
-- TABLE: PRDCT_LN 
--

CREATE TABLE PRDCT_LN(
    PRDCT_LN_ID      INTEGER        NOT NULL,
    PRDCT_LN_NM      VARCHAR(50)    NOT NULL,
    PRDCT_LN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PRDCT_LN_ID)
)
;



-- 
-- TABLE: PRDCT_LSS_LCTN 
--

CREATE TABLE PRDCT_LSS_LCTN(
    PRDCT_LSS_LCTN_ID      CHAR(10)    NOT NULL,
    PRDCT_LSS_LCTN_NM      CHAR(10),
    PRDCT_LSS_LCTN_DESC    CHAR(10),
    PRIMARY KEY (PRDCT_LSS_LCTN_ID)
)
;



-- 
-- TABLE: PRDCT_LSS_TYP 
--

CREATE TABLE PRDCT_LSS_TYP(
    PRDCT_LSS_TYP_ID      CHAR(10)    NOT NULL,
    PRDCT_LSS_TYP_NM      CHAR(10),
    PRDCT_LSS_TYP_DESC    CHAR(10),
    PRIMARY KEY (PRDCT_LSS_TYP_ID)
)
;



-- 
-- TABLE: PRDCT_SUBCAT_LVL_1 
--

CREATE TABLE PRDCT_SUBCAT_LVL_1(
    PRDCT_SUBCAT_LVL_1_ID      INTEGER         NOT NULL,
    PRDCT_HRRCHY_ID            INTEGER         NOT NULL,
    PRDCT_SUBCAT_LVL_1_NM      VARCHAR(50)     NOT NULL,
    PRDCT_SUBCAT_LVL_1_DESC    VARCHAR(250)    NOT NULL,
    PRIMARY KEY (PRDCT_SUBCAT_LVL_1_ID)
)
;



-- 
-- TABLE: PRDCT_SUBCAT_LVL_2 
--

CREATE TABLE PRDCT_SUBCAT_LVL_2(
    PRDCT_SUBCAT_LVL_2_ID      INTEGER         NOT NULL,
    PRDCT_SUBCAT_LVL_1_ID      INTEGER         NOT NULL,
    PRDCT_SUBCAT_LVL_2_NM      VARCHAR(50)     NOT NULL,
    PRDCT_SUBCAT_LVL_2_DESC    VARCHAR(250)    NOT NULL,
    PRIMARY KEY (PRDCT_SUBCAT_LVL_2_ID)
)
;



-- 
-- TABLE: PRDCT_SUBCAT_LVL_3 
--

CREATE TABLE PRDCT_SUBCAT_LVL_3(
    PRDCT_SUBCAT_LVL_3_ID      INTEGER         NOT NULL,
    PRDCT_SUBCAT_LVL_2_ID      INTEGER         NOT NULL,
    PRDCT_SUBCAT_LVL_3_NM      VARCHAR(150)    NOT NULL,
    PRDCT_SUBCAT_LVL_3_DESC    VARCHAR(250)    NOT NULL,
    PRIMARY KEY (PRDCT_SUBCAT_LVL_3_ID)
)
;



-- 
-- TABLE: PRDCTY 
--

CREATE TABLE PRDCTY(
    PRDCTY_ID      INTEGER        NOT NULL,
    PRDCTY_NM      VARCHAR(50)    NOT NULL,
    PRDCTY_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PRDCTY_ID)
)
;



-- 
-- TABLE: PRFRRD_GLBL_CLSSFCTN_SYSTM 
--

CREATE TABLE PRFRRD_GLBL_CLSSFCTN_SYSTM(
    PRFRRD_GLBL_CLSSFCTN_SYSTM_ID      INTEGER        NOT NULL,
    PRFRRD_GLBL_CLSSFCTN_SYSTM_NM      VARCHAR(50)    NOT NULL,
    PRFRRD_GLBL_CLSSFCTN_SYSTM_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PRFRRD_GLBL_CLSSFCTN_SYSTM_ID)
)
;



-- 
-- TABLE: PRGRM_ORG 
--

CREATE TABLE PRGRM_ORG(
    PRGRM_ORG_ID      INTEGER         NOT NULL,
    PRGRM_ORG_NM      VARCHAR(150)    NOT NULL,
    PRGRM_ORG_DESC    VARCHAR(250)    NOT NULL,
    PRIMARY KEY (PRGRM_ORG_ID)
)
;



-- 
-- TABLE: PRH_CNTRCPTV_MTHD 
--

CREATE TABLE PRH_CNTRCPTV_MTHD(
    PRH_CNTRCPTV_MTHD_ID                INTEGER        NOT NULL,
    PRH_CNTRCPTV_MTHD_NM                VARCHAR(50)    NOT NULL,
    PRH_CNTRCPTV_MTHD_DESC              VARCHAR(50)    NOT NULL,
    PRH_CNTRCPTV_MTHD_MTHS_OF_PRTCTN    INTEGER        NOT NULL,
    PRIMARY KEY (PRH_CNTRCPTV_MTHD_ID)
)
;



-- 
-- TABLE: PRH_PRDCT_SPRMCD_ACTV_INGRDNT 
--

CREATE TABLE PRH_PRDCT_SPRMCD_ACTV_INGRDNT(
    PRH_PRDCT_SPRMCD_ACTV_INGRDNT_ID      INTEGER        NOT NULL,
    PRH_PRDCT_SPRMCD_ACTV_INGRDNT_NM      VARCHAR(50)    NOT NULL,
    PRH_PRDCT_SPRMCD_ACTV_INGRDNT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PRH_PRDCT_SPRMCD_ACTV_INGRDNT_ID)
)
;



-- 
-- TABLE: PRH_PRDCT_TYP 
--

CREATE TABLE PRH_PRDCT_TYP(
    PRH_PRDCT_TYP_ID      INTEGER        NOT NULL,
    PRH_PRDCT_TYP_NM      VARCHAR(50)    NOT NULL,
    PRH_PRDCT_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (PRH_PRDCT_TYP_ID)
)
;



-- 
-- TABLE: QA_ADT_APPRVL_STAT 
--

CREATE TABLE QA_ADT_APPRVL_STAT(
    QA_ADT_APPRVL_STAT_ID      INTEGER        NOT NULL,
    QA_ADT_APPRVL_STAT_NM      VARCHAR(50)    NOT NULL,
    QA_ADT_APPRVL_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (QA_ADT_APPRVL_STAT_ID)
)
;



-- 
-- TABLE: QA_ADT_APPRVL_STAT_TYP 
--

CREATE TABLE QA_ADT_APPRVL_STAT_TYP(
    QA_ADT_APPRVL_STAT_TYP_ID      INTEGER        NOT NULL,
    QA_ADT_APPRVL_STAT_TYP_NM      VARCHAR(50)    NOT NULL,
    QA_ADT_APPRVL_STAT_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (QA_ADT_APPRVL_STAT_TYP_ID)
)
;



-- 
-- TABLE: QA_ADT_INSPCTN_STAT 
--

CREATE TABLE QA_ADT_INSPCTN_STAT(
    QA_ADT_INSPCTN_STAT_ID      INTEGER        NOT NULL,
    QA_ADT_INSPCTN_STAT_NM      VARCHAR(50)    NOT NULL,
    QA_ADT_INSPCTN_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (QA_ADT_INSPCTN_STAT_ID)
)
;



-- 
-- TABLE: QA_ADT_OBSRVTN_CTGRY 
--

CREATE TABLE QA_ADT_OBSRVTN_CTGRY(
    QA_ADT_OBSRVTN_CTGRY_ID      INTEGER        NOT NULL,
    QA_ADT_OBSRVTN_CTGRY_NM      VARCHAR(50)    NOT NULL,
    QA_ADT_OBSRVTN_CTGRY_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (QA_ADT_OBSRVTN_CTGRY_ID)
)
;



-- 
-- TABLE: QA_ADT_OBSRVTN_FC 
--

CREATE TABLE QA_ADT_OBSRVTN_FC(
    QA_ADT_OBSRVTN_FC_ID             INTEGER          NOT NULL,
    QA_ADT_SCHED_HDR_FC_ID           INTEGER          NOT NULL,
    QA_ADT_PRDCT_CTGRY_ID            INTEGER          NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID    INTEGER          NOT NULL,
    MFR_ID                           INTEGER          NOT NULL,
    MFR_ST_ID                        INTEGER          NOT NULL,
    QA_ADT_OBSRVTN_CTGRY_ID          INTEGER          NOT NULL,
    RQRS_CNTNMNT_YNFLG               CHAR(1)          NOT NULL,
    OBSRVTN_FNDNG                    VARCHAR(4000)    NOT NULL,
    GVRNG_DOC                        VARCHAR(50)      NOT NULL,
    GVRNG_DOC_SCTN                   VARCHAR(50)      NOT NULL,
    PRIMARY KEY (QA_ADT_OBSRVTN_FC_ID)
)
;



-- 
-- TABLE: QA_ADT_PRDCT_CTGRY 
--

CREATE TABLE QA_ADT_PRDCT_CTGRY(
    QA_ADT_PRDCT_CTGRY_ID      INTEGER        NOT NULL,
    QA_ADT_PRDCT_CTGRY_NM      VARCHAR(50)    NOT NULL,
    QA_ADT_PRDCT_CTGRY_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (QA_ADT_PRDCT_CTGRY_ID)
)
;



-- 
-- TABLE: QA_ADT_RSLT_STAT 
--

CREATE TABLE QA_ADT_RSLT_STAT(
    QA_ADT_RSLT_STAT_ID      INTEGER        NOT NULL,
    QA_ADT_RSLT_STAT_NM      VARCHAR(50)    NOT NULL,
    QA_ADT_RSLT_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (QA_ADT_RSLT_STAT_ID)
)
;



-- 
-- TABLE: QA_ADT_SCHED_HDR_FC 
--

CREATE TABLE QA_ADT_SCHED_HDR_FC(
    QA_ADT_SCHED_HDR_FC_ID            INTEGER         NOT NULL,
    CNTRY_ID                          INTEGER         NOT NULL,
    QA_AUDITEE_TYP_ID                 INTEGER         NOT NULL,
    SPPLR_ID                          INTEGER         NOT NULL,
    MFR_ST_ID                         INTEGER         NOT NULL,
    QA_LBRTRY_ID                      INTEGER         NOT NULL,
    QA_VST_TYP_ID                     INTEGER         NOT NULL,
    QA_ADT_TYP_ID                     INTEGER         NOT NULL,
    QA_ADT_STAT_ID                    INTEGER         NOT NULL,
    QA_ADT_INSPCTN_STAT_ID            INTEGER         NOT NULL,
    QA_ADT_RSLT_STAT_ID               INTEGER         NOT NULL,
    QA_ADT_APPRVL_STAT_ID             INTEGER         NOT NULL,
    QA_ADT_APPRVL_STAT_TYP_ID         INTEGER         NOT NULL,
    QA_ADT_PLND_STRT_DT_SRD_DAY_ID    INTEGER         NOT NULL,
    QA_ADT_ACTL_STRT_DT_SRD_DAY_ID    INTEGER         NOT NULL,
    QA_ADT_ACTL_END_DT_SRD_DAY_ID     INTEGER         NOT NULL,
    QA_ADT_REAUDIT_DT_SRD_DAY_ID      INTEGER         NOT NULL,
    QA_VST_NUM                        VARCHAR(50)     NOT NULL,
    QA_ADT_LEAD                       VARCHAR(250)    NOT NULL,
    QA_ADT_SPRT_LIST                  VARCHAR(250)    NOT NULL,
    QA_ADT_ORG_PARTICIPANT_LIST       VARCHAR(250)    NOT NULL,
    QA_ADT_FREQUENCY_MTHS             INTEGER         NOT NULL,
    PRIMARY KEY (QA_ADT_SCHED_HDR_FC_ID)
)
;



-- 
-- TABLE: QA_ADT_STAT 
--

CREATE TABLE QA_ADT_STAT(
    QA_ADT_STAT_ID      INTEGER        NOT NULL,
    QA_ADT_STAT_NM      VARCHAR(50)    NOT NULL,
    QA_ADT_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (QA_ADT_STAT_ID)
)
;



-- 
-- TABLE: QA_ADT_TYP 
--

CREATE TABLE QA_ADT_TYP(
    QA_ADT_TYP_ID      INTEGER        NOT NULL,
    QA_ADT_TYP_NM      VARCHAR(50)    NOT NULL,
    QA_ADT_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (QA_ADT_TYP_ID)
)
;



-- 
-- TABLE: QA_ASSY_CNTXT 
--

CREATE TABLE QA_ASSY_CNTXT(
    QA_ASSY_CNTXT_ID      INTEGER        NOT NULL,
    QA_ASSY_CNTXT_NM      VARCHAR(50)    NOT NULL,
    QA_ASSY_CNTXT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (QA_ASSY_CNTXT_ID)
)
;



-- 
-- TABLE: QA_ASSY_STAT 
--

CREATE TABLE QA_ASSY_STAT(
    QA_ASSY_STAT_ID      INTEGER        NOT NULL,
    QA_ASSY_STAT_NM      VARCHAR(50)    NOT NULL,
    QA_ASSY_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (QA_ASSY_STAT_ID)
)
;



-- 
-- TABLE: QA_AUDITEE_TYP 
--

CREATE TABLE QA_AUDITEE_TYP(
    QA_AUDITEE_TYP_ID      INTEGER        NOT NULL,
    QA_AUDITEE_TYP_NM      VARCHAR(50)    NOT NULL,
    QA_AUDITEE_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (QA_AUDITEE_TYP_ID)
)
;



-- 
-- TABLE: QA_CAPA_PLN_FC 
--

CREATE TABLE QA_CAPA_PLN_FC(
    QA_CAPA_PLN_FC_ID                     INTEGER          NOT NULL,
    QA_ADT_SCHED_HDR_FC_ID                INTEGER          NOT NULL,
    QA_CAPA_PLN_STAT_ID                   INTEGER          NOT NULL,
    QA_CAPA_ISUNC_DT_SRD_DAY_ID           INTEGER          NOT NULL,
    QA_CAPA_APPRVL_DT_SRD_DAY_ID          INTEGER          NOT NULL,
    QA_CAPA_RQRD_RSPNS_DT_SRD_DAY_ID      INTEGER          NOT NULL,
    QA_CAPA_ACTL_RSPNS_DT_SRD_DAY_ID      INTEGER          NOT NULL,
    QA_CAPA_RQRD_STRT_DT_SRD_DAY_ID       INTEGER          NOT NULL,
    QA_CAPA_ACTL_STRT_DT_SRD_DAY_ID       INTEGER          NOT NULL,
    QA_CAPA_RQRD_CMPLTN_DT_SRD_DAY_ID     INTEGER          NOT NULL,
    QA_CAPA_ACTL_CMPLTN_DT_SRD_DAY_ID     INTEGER          NOT NULL,
    QA_CAPA_VERIFICATION_DT_SRD_DAY_ID    INTEGER          NOT NULL,
    QA_CAPA_PLN_NUM                       VARCHAR(10)      NOT NULL,
    QA_CAPA_PLN_INITIATOR                 VARCHAR(150)     NOT NULL,
    QA_CAPA_PLN_ASGNEE                    VARCHAR(150)     NOT NULL,
    QA_CAPA_PLN_APPRVR                    VARCHAR(150)     NOT NULL,
    QA_CAPA_PLN_VRFR                      VARCHAR(150)     NOT NULL,
    QA_CAPA_PLN_DESC                      VARCHAR(4000)    NOT NULL,
    QA_CAPA_PLN_NOTES                     VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (QA_CAPA_PLN_FC_ID)
)
;



-- 
-- TABLE: QA_CAPA_PLN_ITM_FC 
--

CREATE TABLE QA_CAPA_PLN_ITM_FC(
    QA_CAPA_PLN_ITM_FC_ID      INTEGER          NOT NULL,
    QA_ADT_OBSRVTN_FC_ID       INTEGER          NOT NULL,
    QA_CAPA_PLN_ITM_STAT_ID    INTEGER          NOT NULL,
    QA_CAPA_PLN_FC_ID          INTEGER          NOT NULL,
    QA_CAPA_PLN_ITM_TYP_ID     INTEGER          NOT NULL,
    QA_CAPA_PLN_ITM_NUM        VARCHAR(10)      NOT NULL,
    QA_CAPA_PLN_ITM_ASGNEE     VARCHAR(150)     NOT NULL,
    QA_CAPA_PLN_VRFR           VARCHAR(150)     NOT NULL,
    QA_CAPA_PLN_ITM_DESC       VARCHAR(250)     NOT NULL,
    QA_CAPA_PLN_ITM_NOTES      VARCHAR(4000)    NOT NULL,
    CNTNMNT_ACTN               VARCHAR(250)     NOT NULL,
    RTCS_DESC                  VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (QA_CAPA_PLN_ITM_FC_ID)
)
;



-- 
-- TABLE: QA_CAPA_PLN_ITM_STAT 
--

CREATE TABLE QA_CAPA_PLN_ITM_STAT(
    QA_CAPA_PLN_ITM_STAT_ID      INTEGER        NOT NULL,
    QA_CAPA_PLN_ITM_STAT_NM      VARCHAR(50)    NOT NULL,
    QA_CAPA_PLN_ITM_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (QA_CAPA_PLN_ITM_STAT_ID)
)
;



-- 
-- TABLE: QA_CAPA_PLN_ITM_TYP 
--

CREATE TABLE QA_CAPA_PLN_ITM_TYP(
    QA_CAPA_PLN_ITM_TYP_ID      INTEGER        NOT NULL,
    QA_CAPA_PLN_ITM_TYP_NM      VARCHAR(50)    NOT NULL,
    QA_CAPA_PLN_ITM_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (QA_CAPA_PLN_ITM_TYP_ID)
)
;



-- 
-- TABLE: QA_CAPA_PLN_STAT 
--

CREATE TABLE QA_CAPA_PLN_STAT(
    QA_CAPA_PLN_STAT_ID      INTEGER        NOT NULL,
    QA_CAPA_PLN_STAT_NM      VARCHAR(50)    NOT NULL,
    QA_CAPA_PLN_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (QA_CAPA_PLN_STAT_ID)
)
;



-- 
-- TABLE: QA_LBRTRY 
--

CREATE TABLE QA_LBRTRY(
    QA_LBRTRY_ID                       INTEGER         NOT NULL,
    QA_LBRTRY_CNTRLLNG_ENTTY_ID        INTEGER         NOT NULL,
    QA_LBRTRY_SUB_CNTRLLNG_ENTTY_ID    INTEGER         NOT NULL,
    CNTRY_ID                           INTEGER         NOT NULL,
    QA_LBRTRY_NM                       VARCHAR(50)     NOT NULL,
    QA_LBRTRY_DESC                     VARCHAR(255),
    QA_LBRTRY_LCTN_DESC                VARCHAR(255),
    QA_LBRTRY_ADDR_LN_1                VARCHAR(100),
    QA_LBRTRY_ADDR_LN_2                VARCHAR(100),
    QA_LBRTRY_ADDR_STE                 VARCHAR(100),
    QA_LBRTRY_ADDR_CTY                 VARCHAR(100),
    QA_LBRTRY_ADDR_ST                  VARCHAR(100)    NOT NULL,
    QA_LBRTRY_ADDR_PSTL_CD             VARCHAR(100),
    QA_LBRTRY_ADDR_PRVNC               VARCHAR(100),
    QA_LBRTRY_ADDR_CNTRY               VARCHAR(100)    NOT NULL,
    QA_LBRTRY_CNTCT_NM                 VARCHAR(50)     NOT NULL,
    QA_LBRTRY_CNTCT_EML                VARCHAR(255),
    PRIMARY KEY (QA_LBRTRY_ID)
)
;



-- 
-- TABLE: QA_LBRTRY_CNTRLLNG_ENTTY 
--

CREATE TABLE QA_LBRTRY_CNTRLLNG_ENTTY(
    QA_LBRTRY_CNTRLLNG_ENTTY_ID              INTEGER         NOT NULL,
    QA_LBRTRY_CNTRLLNG_ENTTY_NM              VARCHAR(50)     NOT NULL,
    QA_LBRTRY_CNTRLLNG_ENTTY_DESC            VARCHAR(255),
    QA_LBRTRY_CNTRLLNG_ENTTY_ADDR_LN_1       VARCHAR(100),
    QA_LBRTRY_CNTRLLNG_ENTTY_ADDR_LN_2       VARCHAR(100),
    QA_LBRTRY_CNTRLLNG_ENTTY_ADDR_STE        VARCHAR(100),
    QA_LBRTRY_CNTRLLNG_ENTTY_ADDR_CTY        VARCHAR(100),
    QA_LBRTRY_CNTRLLNG_ENTTY_ADDR_ST         VARCHAR(100)    NOT NULL,
    QA_LBRTRY_CNTRLLNG_ENTTY_ADDR_PSTL_CD    VARCHAR(100),
    QA_LBRTRY_CNTRLLNG_ENTTY_ADDR_PRVNC      VARCHAR(100),
    QA_LBRTRY_CNTRLLNG_ENTTY_ADDR_CNTRY      VARCHAR(100)    NOT NULL,
    QA_LBRTRY_CNTRLLNG_ENTTY_CNTCT_NM        VARCHAR(50)     NOT NULL,
    QA_LBRTRY_CNTRLLNG_ENTTY_CNTCT_EML       VARCHAR(255),
    PRIMARY KEY (QA_LBRTRY_CNTRLLNG_ENTTY_ID)
)
;



-- 
-- TABLE: QA_LOT_CMPLNC_STAT 
--

CREATE TABLE QA_LOT_CMPLNC_STAT(
    QA_LOT_CMPLNC_STAT_ID      INTEGER        NOT NULL,
    QA_LOT_CMPLNC_STAT_NM      VARCHAR(50)    NOT NULL,
    QA_LOT_CMPLNC_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (QA_LOT_CMPLNC_STAT_ID)
)
;



-- 
-- TABLE: QA_PRDCT_LOT_ASSY_FC (GENERIC DBMS Modification: Row Size too large VARCHAR(4000) changed to VARCHAR(1000))
--

CREATE TABLE QA_PRDCT_LOT_ASSY_FC(
    QA_PRDCT_LOT_ASSY_FC_ID             INTEGER           NOT NULL,
    SPPLR_ID                            INTEGER           NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID       INTEGER           NOT NULL,
    MFR_ID                              INTEGER           NOT NULL,
    MFR_ST_ID                           INTEGER           NOT NULL,
    SMPL_RQSTD_DT_SRD_DAY_ID            INTEGER           NOT NULL,
    SMPL_AGNT_DSPTCH_DT_SRD_DAY_ID      INTEGER           NOT NULL,
    ESTMTD_SMPL_SHPPNG_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    ACTL_SMPL_SHPPNG_DT_SRD_DAY_ID      INTEGER           NOT NULL,
    ESTMTD_SMPL_RCT_DT_SRD_DAY_ID       INTEGER           NOT NULL,
    ACTL_SMPL_RCT_DT_SRD_DAY_ID         INTEGER           NOT NULL,
    ESTMTD_RLS_DT_SRD_DAY_ID            INTEGER           NOT NULL,
    ACTL_RLS_DT_SRD_DAY_ID              INTEGER           NOT NULL,
    LOT_EXP_DT_SRD_DAY_ID               INTEGER           NOT NULL,
    LOT_MFD_DT_SRD_DAY_ID               INTEGER           NOT NULL,
    QTY_UOM_ID                          INTEGER           NOT NULL,
    QA_LBRTRY_ID                        INTEGER           NOT NULL,
    QA_LOT_CMPLNC_STAT_ID               INTEGER           NOT NULL,
    QA_ASSY_STAT_ID                     INTEGER           NOT NULL,
    PO_LIN_FC_ID                        INTEGER           NOT NULL,
    QA_TST_SETTING_ID                   INTEGER           NOT NULL,
    LOT_NUM                             VARCHAR(255)      NOT NULL,
    IS_SRA_PRDCT_YNFLG                  CHAR(1)           NOT NULL,
    ASSY_NUM                            VARCHAR(150)      NOT NULL,
    SMPLD_BY                            VARCHAR(50),
    SMPL_QTY                            DECIMAL(15, 2)    NOT NULL,
    LOT_TOT_QTY                         DECIMAL(15, 2)    NOT NULL,
    ESTMTD_TSTNG_TIME_DAYS              INTEGER,
    ACTL_TSTNG_TIME_DAYS                INTEGER,
    QLTY_ISSUS_CMMNTS                   VARCHAR(1000),
    QLTY_ISSU_1_CMMNTS                  VARCHAR(1000),
    QLTY_ISSU_2_CMMNTS                  VARCHAR(1000),
    QLTY_ISSU_3_CMMNTS                  VARCHAR(1000),
    QLTY_ISSU_4_CMMNTS                  VARCHAR(1000),
    PRIMARY KEY (QA_PRDCT_LOT_ASSY_FC_ID)
)
;



-- 
-- TABLE: QA_RSLT_CMPLNC_STAT 
--

CREATE TABLE QA_RSLT_CMPLNC_STAT(
    QA_RSLT_CMPLNC_STAT_ID      INTEGER        NOT NULL,
    QA_RSLT_CMPLNC_STAT_NM      VARCHAR(50)    NOT NULL,
    QA_RSLT_CMPLNC_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (QA_RSLT_CMPLNC_STAT_ID)
)
;



-- 
-- TABLE: QA_TST 
--

CREATE TABLE QA_TST(
    QA_TST_ID          INTEGER        NOT NULL,
    QA_TST_TYP_ID      INTEGER        NOT NULL,
    QA_TST_NM          VARCHAR(50)    NOT NULL,
    QA_TST_DESC        VARCHAR(50)    NOT NULL,
    QA_TST_STDS_ORG    VARCHAR(50)    NOT NULL,
    QA_TST_STD_NM      VARCHAR(50)    NOT NULL,
    PRIMARY KEY (QA_TST_ID)
)
;



-- 
-- TABLE: QA_TST_ELMNT 
--

CREATE TABLE QA_TST_ELMNT(
    QA_TST_ELMNT_ID      INTEGER         NOT NULL,
    QA_TST_ID            INTEGER         NOT NULL,
    QA_TST_ELMNT_NM      VARCHAR(150)    NOT NULL,
    QA_TST_ELMNT_DESC    VARCHAR(50)     NOT NULL,
    PRIMARY KEY (QA_TST_ELMNT_ID)
)
;



-- 
-- TABLE: QA_TST_RSLT_FC 
--

CREATE TABLE QA_TST_RSLT_FC(
    QA_TST_RSLT_FC_ID          INTEGER          NOT NULL,
    QA_TST_ELMNT_1_ID          INTEGER          NOT NULL,
    QA_TST_ELMNT_2_ID          INTEGER          NOT NULL,
    QA_ASSY_CNTXT_ID           INTEGER          NOT NULL,
    QA_PRDCT_LOT_ASSY_FC_ID    INTEGER          NOT NULL,
    QA_RSLT_CMPLNC_STAT_ID     INTEGER          NOT NULL,
    TST_RSLT_VAL_UOM_ID        INTEGER          NOT NULL,
    ASSY_NUM                   VARCHAR(50)      NOT NULL,
    LOT_NUM                    VARCHAR(255)     NOT NULL,
    RSLT_NUM                   SMALLINT         NOT NULL,
    RSLT_VAL                   VARCHAR(150)     NOT NULL,
    RSLT_SPEC_MIN              VARCHAR(150),
    RSLT_SPEC_MAX              VARCHAR(150),
    RSLT_SPEC_LIST             VARCHAR(150),
    RSLT_IS_CUME_YNFLG         CHAR(1)          NOT NULL,
    QLTY_ISSU_TXT              VARCHAR(4000),
    PRIMARY KEY (QA_TST_RSLT_FC_ID)
)
;



-- 
-- TABLE: QA_TST_SETTING 
--

CREATE TABLE QA_TST_SETTING(
    QA_TST_SETTING_ID      INTEGER        NOT NULL,
    QA_TST_SETTING_NM      VARCHAR(50)    NOT NULL,
    QA_TST_SETTING_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (QA_TST_SETTING_ID)
)
;



-- 
-- TABLE: QA_TST_TYP 
--

CREATE TABLE QA_TST_TYP(
    QA_TST_TYP_ID      INTEGER        NOT NULL,
    QA_TST_TYP_NM      VARCHAR(50)    NOT NULL,
    QA_TST_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (QA_TST_TYP_ID)
)
;



-- 
-- TABLE: QA_VST_TYP 
--

CREATE TABLE QA_VST_TYP(
    QA_VST_TYP_ID      INTEGER        NOT NULL,
    QA_VST_TYP_NM      VARCHAR(50)    NOT NULL,
    QA_VST_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (QA_VST_TYP_ID)
)
;



-- 
-- TABLE: QTY_UOM 
--

CREATE TABLE QTY_UOM(
    QTY_UOM_ID               INTEGER        NOT NULL,
    TRADE_ITM_BASE_UOM_ID    INTEGER        NOT NULL,
    QTY_UOM_NM               VARCHAR(50)    NOT NULL,
    QTY_UOM_DESC             VARCHAR(50)    NOT NULL,
    QTY_UOM_UNITS_EACH       INTEGER        NOT NULL,
    PRIMARY KEY (QTY_UOM_ID)
)
;



-- 
-- TABLE: RGN 
--

CREATE TABLE RGN(
    RGN_ID      INTEGER        NOT NULL,
    CMS_ID      INTEGER        NOT NULL,
    RGN_NM      VARCHAR(50)    NOT NULL,
    RGN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (RGN_ID)
)
;



-- 
-- TABLE: RMS 
--

CREATE TABLE RMS(
    RMS_ID      INTEGER        NOT NULL,
    RGN_ID      INTEGER        NOT NULL,
    CMS_ID      INTEGER        NOT NULL,
    RMS_NM      VARCHAR(50)    NOT NULL,
    RMS_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (RMS_ID)
)
;



-- 
-- TABLE: ROUTEOFADMINISTRATION 
--

CREATE TABLE ROUTEOFADMINISTRATION(
    ROUTEOFADMINISTRATION_ID      INTEGER        NOT NULL,
    ROUTEOFADMINISTRATION         VARCHAR(80)    NOT NULL,
    ROUTEOFADMINISTRATION_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (ROUTEOFADMINISTRATION_ID)
)
;


-- 
-- TABLE: RPRT_PRD_TYP 
--

CREATE TABLE RPRT_PRD_TYP(
    RPRT_PRD_TYP_ID      INTEGER        NOT NULL,
    RPRT_PRD_TYP_NM      VARCHAR(50)    NOT NULL,
    RPRT_PRD_TYP_DESC    VARCHAR(50)    NOT NULL,
    IS_FSCL_YNFLG        CHAR(1)        NOT NULL,
    PRIMARY KEY (RPRT_PRD_TYP_ID)
)
;


-- 
-- TABLE: RTK_TGT_PTHGN 
--

CREATE TABLE RTK_TGT_PTHGN(
    RTK_TGT_PTHGN_ID      INTEGER        NOT NULL,
    RTK_TGT_PTHGN_NM      VARCHAR(50)    NOT NULL,
    RTK_TGT_PTHGN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (RTK_TGT_PTHGN_ID)
)
;



-- 
-- TABLE: SEX 
--

CREATE TABLE SEX(
    SEX_ID      CHAR(10)    NOT NULL,
    SEX_NM      CHAR(10),
    SEX_DESC    CHAR(10),
    PRIMARY KEY (SEX_ID)
)
;



-- 
-- TABLE: SHPMNT_DLY_RSPNSBL_PRTY 
--

CREATE TABLE SHPMNT_DLY_RSPNSBL_PRTY(
    SHPMNT_DLY_RSPNSBL_PRTY_ID      INTEGER        NOT NULL,
    SHPMNT_DLY_RSPNSBL_PRTY_NM      VARCHAR(50)    NOT NULL,
    SHPMNT_DLY_RSPNSBL_PRTY_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SHPMNT_DLY_RSPNSBL_PRTY_ID)
)
;



-- 
-- TABLE: SHPMNT_DLY_TYP 
--

CREATE TABLE SHPMNT_DLY_TYP(
    SHPMNT_DLY_TYP_ID             INTEGER        NOT NULL,
    SHPMNT_DLY_RSPNSBL_PRTY_ID    INTEGER        NOT NULL,
    SHPMNT_DLY_TYP_NM             VARCHAR(50)    NOT NULL,
    SHPMNT_DLY_TYP_DESC           VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SHPMNT_DLY_TYP_ID)
)
;



-- 
-- TABLE: SHPMNT_FC 
--

CREATE TABLE SHPMNT_FC(
    SHPMNT_FC_ID                    INTEGER           NOT NULL,
    CRRNCY_ID                       INTEGER           NOT NULL,
    PO_FC_ID                        INTEGER           NOT NULL,
    SO_FC_ID                        INTEGER           NOT NULL,
    ACTL_DEP_DT_SRD_DAY_ID          INTEGER           NOT NULL,
    ESTMTD_DEP_DT_SRD_DAY_ID        INTEGER           NOT NULL,
    ESTMTD_ARRIVAL_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    ACTL_ARRIVAL_DT_SRD_DAY_ID      INTEGER           NOT NULL,
    RCVD_DT_SRD_DAY_ID              INTEGER           NOT NULL,
    SHPPNG_MTHD_ID                  INTEGER           NOT NULL,
    FRT_FWDR_ID                     INTEGER           NOT NULL,
    DSTNTN_LGSTCS_LCTN_ID           INTEGER           NOT NULL,
    SRC_LGSTCS_LCTN_ID              INTEGER           NOT NULL,
    LGSTCS_VSSL_ID                  INTEGER           NOT NULL,
    CNTRY_PRGRM_ID                  INTEGER           NOT NULL,
    DONR_OFFC_ID                    INTEGER           NOT NULL,
    HLTH_ELMNT_ID                   INTEGER           NOT NULL,
    TSKORDR_ID                      INTEGER           NOT NULL,
    SPPLY_CHN_FRMWRK_ID             INTEGER           NOT NULL,
    WT_UOM_ID                       INTEGER           NOT NULL,
    VOL_UOM_ID                      INTEGER           NOT NULL,
    SHPMNT_NUM                      VARCHAR(50),
    CRRNCY_EXCHNG_RT                DECIMAL(18, 6),
    HDR_DISC_PCTG                   DECIMAL(4, 3)     NOT NULL,
    HDR_DISC_VAL                    DECIMAL(12, 3)    NOT NULL,
    SHPMNT_WYBLL                    VARCHAR(255),
    TOT_LIN_VAL                     DECIMAL(12, 3)    NOT NULL,
    TOT_LIN_DISC_VAL                DECIMAL(12, 3)    NOT NULL,
    TOT_SHPMNT_WT                   DECIMAL(9, 3)     NOT NULL,
    TOT_SHPMNT_VOL                  DECIMAL(9, 3)     NOT NULL,
    FRT_EXPNS                       DECIMAL(12, 3)    NOT NULL,
    INSRNC_EXPNS                    DECIMAL(12, 3)    NOT NULL,
    QA_EXPNS                        DECIMAL(12, 3)    NOT NULL,
    SCRTY_EXPNS                     DECIMAL(12, 3)    NOT NULL,
    OTHR_HDR_EXPNSS                 DECIMAL(12, 3)    NOT NULL,
    PRTL_DLVRY_YNFLG                CHAR(1)           NOT NULL,
    SHPMNT_RMRKS                    VARCHAR(4000)     NOT NULL,
    PRIMARY KEY (SHPMNT_FC_ID)
)
;



-- 
-- TABLE: SHPMNT_LEG_FC 
--

CREATE TABLE SHPMNT_LEG_FC(
    SHPMNT_LEG_FC_ID             INTEGER          NOT NULL,
    SHPMNT_FC_ID                 INTEGER          NOT NULL,
    SHPPNG_MTHD_ID               INTEGER          NOT NULL,
    SHPMNT_LEG_LGSTCS_LCTN_ID    INTEGER          NOT NULL,
    SRC_LGSTCS_LCTN_ID           INTEGER          NOT NULL,
    DSTNTN_LGSTCS_LCTN_ID        INTEGER          NOT NULL,
    ARRIVAL_DT_SRD_DAY_ID        INTEGER          NOT NULL,
    DEP_DT_SRD_DAY_ID            INTEGER          NOT NULL,
    SHPMNT_LEG_STAT_ID           INTEGER          NOT NULL,
    LGSTCS_VSSL_ID               INTEGER          NOT NULL,
    FRT_FWDR_ID                  INTEGER          NOT NULL,
    VSSL_VYG_NUM                 VARCHAR(255)     NOT NULL,
    SHPMNT_LEG_NUM               VARCHAR(50)      NOT NULL,
    SHPMNT_LEG_RMRKS             VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (SHPMNT_LEG_FC_ID)
)
;



-- 
-- TABLE: SHPMNT_LEG_STAT 
--

CREATE TABLE SHPMNT_LEG_STAT(
    SHPMNT_LEG_STAT_ID      INTEGER        NOT NULL,
    SHPMNT_LEG_STAT_NM      VARCHAR(50)    NOT NULL,
    SHPMNT_LEG_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SHPMNT_LEG_STAT_ID)
)
;



-- 
-- TABLE: SHPMNT_LIN_FC 
--

CREATE TABLE SHPMNT_LIN_FC(
    SHPMNT_LIN_FC_ID                 INTEGER           NOT NULL,
    SHPMNT_FC_ID                     INTEGER           NOT NULL,
    PO_LIN_FC_ID                     INTEGER           NOT NULL,
    SO_LIN_FC_ID                     INTEGER           NOT NULL,
    FNDNG_SRC_ID                     INTEGER           NOT NULL,
    ACTL_DEP_DT_SRD_DAY_ID           INTEGER           NOT NULL,
    ACTL_ARRIVAL_DT_SRD_DAY_ID       INTEGER           NOT NULL,
    FRT_FWDR_ID                      INTEGER           NOT NULL,
    SHPPNG_MTHD_ID                   INTEGER           NOT NULL,
    SRC_LGSTCS_LCTN_ID               INTEGER           NOT NULL,
    DSTNTN_LGSTCS_LCTN_ID            INTEGER           NOT NULL,
    TRADE_ITM_ID                     INTEGER           NOT NULL,
    MFR_PRDCT_LOT_ID                 INTEGER           NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID    INTEGER           NOT NULL,
    QTY_UOM_ID                       INTEGER           NOT NULL,
    WT_UOM_ID                        INTEGER           NOT NULL,
    VOL_UOM_ID                       INTEGER           NOT NULL,
    LIN_VAL                          DECIMAL(12, 3),
    LIN_EXW_VAL                      DECIMAL(12, 3)    NOT NULL,
    LIN_SHPPNG_CST                   DECIMAL(12, 3)    NOT NULL,
    LIN_QTY                          DECIMAL(15, 2)    NOT NULL,
    LIN_EACH_QTY                     DECIMAL(15, 2)    NOT NULL,
    LIN_WT                           DECIMAL(9, 3)     NOT NULL,
    LIN_VOL                          DECIMAL(9, 3)     NOT NULL,
    LIN_DISC_PCTG                    DECIMAL(4, 3)     NOT NULL,
    LIN_DISC_VAL                     DECIMAL(12, 3)    NOT NULL,
    SHPMNT_LIN_CYP                   DECIMAL(11, 2)    NOT NULL,
    PRIMARY KEY (SHPMNT_LIN_FC_ID)
)
;



-- 
-- TABLE: SHPMNT_MLSTN_FC 
--

CREATE TABLE SHPMNT_MLSTN_FC(
    SHPMNT_MLSTN_FC_ID                      INTEGER          NOT NULL,
    SHPMNT_FC_ID                            INTEGER          NOT NULL,
    SHPMNT_LIN_FC_ID                        INTEGER          NOT NULL,
    SHPMNT_MLSTN_RSN_ID                     INTEGER          NOT NULL,
    SHPMNT_MLSTN_TYP_ID                     INTEGER          NOT NULL,
    SHPMNT_MLSTN_STRT_LGSTCS_LCTN_ID        INTEGER          NOT NULL,
    SHPMNT_MLSTN_END_LGSTCS_LCTN_ID         INTEGER          NOT NULL,
    SHPMNT_MLSTN_PLND_STRT_DT_SRD_DAY_ID    INTEGER          NOT NULL,
    SHPMNT_MLSTN_PLND_END_DT_SRD_DAY_ID     INTEGER          NOT NULL,
    SHPMNT_MLSTN_TIME_DT_SRD_DAY_ID         INTEGER          NOT NULL,
    SHPMNT_MLSTN_STRT_DT_SRD_DAY_ID         INTEGER          NOT NULL,
    SHPMNT_MLSTN_END_DT_SRD_DAY_ID          INTEGER          NOT NULL,
    SHPMNT_MLSTN_RMRKS                      VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (SHPMNT_MLSTN_FC_ID)
)
;



-- 
-- TABLE: SHPMNT_MLSTN_RSN 
--

CREATE TABLE SHPMNT_MLSTN_RSN(
    SHPMNT_MLSTN_RSN_ID      INTEGER        NOT NULL,
    SHPMNT_MLSTN_RSN_NM      VARCHAR(50)    NOT NULL,
    SHPMNT_MLSTN_RSN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SHPMNT_MLSTN_RSN_ID)
)
;



-- 
-- TABLE: SHPMNT_MLSTN_TYP 
--

CREATE TABLE SHPMNT_MLSTN_TYP(
    SHPMNT_MLSTN_TYP_ID      INTEGER        NOT NULL,
    SHPMNT_MLSTN_TYP_NM      VARCHAR(50)    NOT NULL,
    SHPMNT_MLSTN_TYP_CD      VARCHAR(10)    NOT NULL,
    SHPMNT_MLSTN_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SHPMNT_MLSTN_TYP_ID)
)
;



-- 
-- TABLE: SHPPNG_MTHD 
--

CREATE TABLE SHPPNG_MTHD(
    SHPPNG_MTHD_ID      INTEGER        NOT NULL,
    SHPPNG_MTHD_NM      VARCHAR(50)    NOT NULL,
    SHPPNG_MTHD_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SHPPNG_MTHD_ID)
)
;



-- 
-- TABLE: SO_DLY_FC 
--

CREATE TABLE SO_DLY_FC(
    SO_DLY_FC_ID                    INTEGER          NOT NULL,
    SO_FC_ID                        INTEGER          NOT NULL,
    DT_DLY_STARTED_DT_SRD_DAY_ID    INTEGER          NOT NULL,
    DT_DLY_CLRD_DT_SRD_DAY_ID       INTEGER          NOT NULL,
    SO_DLY_TYP_ID                   INTEGER          NOT NULL,
    SO_DLY_RSN_ID                   INTEGER          NOT NULL,
    SO_DLY_DAY_CNT                  INTEGER          NOT NULL,
    SO_DLY_RMRKS                    VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (SO_DLY_FC_ID)
)
;



-- 
-- TABLE: SO_DLY_RSN 
--

CREATE TABLE SO_DLY_RSN(
    SO_DLY_RSN_ID      INTEGER        NOT NULL,
    SO_DLY_RSN_NM      VARCHAR(50)    NOT NULL,
    SO_DLY_RSN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SO_DLY_RSN_ID)
)
;



-- 
-- TABLE: SO_DLY_RSPNSBL_PRTY 
--

CREATE TABLE SO_DLY_RSPNSBL_PRTY(
    SO_DLY_RSPNSBL_PRTY_ID      INTEGER        NOT NULL,
    SO_DLY_RSPNSBL_PRTY_NM      VARCHAR(50)    NOT NULL,
    SO_DLY_RSPNSBL_PRTY_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SO_DLY_RSPNSBL_PRTY_ID)
)
;



-- 
-- TABLE: SO_DLY_TYP 
--

CREATE TABLE SO_DLY_TYP(
    SO_DLY_TYP_ID             INTEGER        NOT NULL,
    SO_DLY_RSPNSBL_PRTY_ID    INTEGER        NOT NULL,
    SO_DLY_TYP_NM             VARCHAR(50)    NOT NULL,
    SO_DLY_TYP_DESC           VARCHAR(50)    NOT NULL,
    SO_DLY_ACCPTBL_YNFLG      CHAR(1)        NOT NULL,
    PRIMARY KEY (SO_DLY_TYP_ID)
)
;



-- 
-- TABLE: SO_DOC_CMPLTN_STAT 
--

CREATE TABLE SO_DOC_CMPLTN_STAT(
    SO_DOC_CMPLTN_STAT_ID      INTEGER        NOT NULL,
    SO_DOC_CMPLTN_STAT_NM      VARCHAR(50)    NOT NULL,
    SO_DOC_CMPLTN_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SO_DOC_CMPLTN_STAT_ID)
)
;



-- 
-- TABLE: SO_FC 
--

CREATE TABLE SO_FC(
    SO_FC_ID                            INTEGER           NOT NULL,
    PQ_FC_ID                            INTEGER           NOT NULL,
    PO_FC_ID                            INTEGER           NOT NULL,
    SO_TYP_ID                           INTEGER           NOT NULL,
    SO_DT_SRD_DAY_ID                    INTEGER           NOT NULL,
    CNTRY_ID                            INTEGER           NOT NULL,
    DONR_OFFC_ID                        INTEGER           NOT NULL,
    FNDNG_SRC_ID                        INTEGER           NOT NULL,
    SPPLR_ID                            INTEGER           NOT NULL,
    HLTH_ELMNT_ID                       INTEGER           NOT NULL,
    TSKORDR_ID                          INTEGER           NOT NULL,
    PPLN_STG_ID                         INTEGER           NOT NULL,
    SPPLY_CHN_FRMWRK_ID                 INTEGER           NOT NULL,
    SO_STAT_ID                          INTEGER           NOT NULL,
    PPLN_ORDR_DISP_ID                   INTEGER           NOT NULL,
    SO_DOC_CMPLTN_STAT_ID               INTEGER           NOT NULL,
    SRC_LGSTCS_LCTN_ID                  INTEGER           NOT NULL,
    DSTNTN_LGSTCS_LCTN_ID               INTEGER           NOT NULL,
    INCOTERM_ID                         INTEGER           NOT NULL,
    BLNKT_SO_VLD_FROM_DT                INTEGER           NOT NULL,
    BLNKT_SO_VLD_TO_DT                  INTEGER           NOT NULL,
    PRJCTD_DLVRY_DT_SRD_DAY_ID          INTEGER           NOT NULL,
    ESTMTD_RDY_FOR_FRT_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    PLND_IN_CNTRY_DT_SRD_DAY_ID         INTEGER           NOT NULL,
    PLND_DLVRY_DT_SRD_DAY_ID            INTEGER           NOT NULL,
    RQRD_DLVRY_DT_SRD_DAY_ID            INTEGER           NOT NULL,
    PLND_DLVR_NOTE_DT_SRD_DAY_ID        INTEGER           NOT NULL,
    PLND_PKUP_DT_SRD_DAY_ID             INTEGER           NOT NULL,
    SHPPNG_MTHD_ID                      INTEGER           NOT NULL,
    FRT_FWDR_ID                         INTEGER           NOT NULL,
    CNTRY_PRGRM_ID                      INTEGER           NOT NULL,
    CRRNCY_ID                           INTEGER           NOT NULL,
    PMT_TRMS_TYP_ID                     INTEGER           NOT NULL,
    SO_NUM                              VARCHAR(50),
    ORDR_IN_LN_WITH_SP_YNFLG            CHAR(1)           NOT NULL,
    PRTL_DLVRY_YNFLG                    CHAR(1)           NOT NULL,
    CRRNCY_EXCHNG_RT                    DECIMAL(18, 6),
    HDR_DISC_PCTG                       DECIMAL(4, 3)     NOT NULL,
    HDR_DISC_VAL                        DECIMAL(12, 3)    NOT NULL,
    TOT_LIN_DISC_VAL                    DECIMAL(12, 3)    NOT NULL,
    FRT_EXPNS                           DECIMAL(12, 3)    NOT NULL,
    INSRNC_EXPNS                        DECIMAL(12, 3)    NOT NULL,
    QA_EXPNS                            DECIMAL(12, 3)    NOT NULL,
    SCRTY_EXPNS                         DECIMAL(12, 3)    NOT NULL,
    OTHR_HDR_EXPNSS                     DECIMAL(12, 3)    NOT NULL,
    SO_RMRKS                            VARCHAR(4000)     NOT NULL,
    PRIMARY KEY (SO_FC_ID)
)
;



-- 
-- TABLE: SO_HDR_EXPNS_FC 
--

CREATE TABLE SO_HDR_EXPNS_FC(
    SO_HDR_EXPNS_FC_ID     INTEGER           NOT NULL,
    SO_FC_ID               INTEGER           NOT NULL,
    SO_HDR_EXPNS_TYP_ID    INTEGER           NOT NULL,
    EXPNS_VAL              DECIMAL(12, 3)    NOT NULL,
    EXPNS_DISC_PCTG        DECIMAL(4, 3)     NOT NULL,
    EXPNS_DISC_VAL         DECIMAL(12, 3)    NOT NULL,
    PRIMARY KEY (SO_HDR_EXPNS_FC_ID)
)
;



-- 
-- TABLE: SO_HDR_EXPNS_TYP 
--

CREATE TABLE SO_HDR_EXPNS_TYP(
    SO_HDR_EXPNS_TYP_ID      INTEGER        NOT NULL,
    SO_HDR_EXPNS_TYP_NM      VARCHAR(50)    NOT NULL,
    SO_HDR_EXPNS_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SO_HDR_EXPNS_TYP_ID)
)
;



-- 
-- TABLE: SO_KEY_INFO_TYP 
--

CREATE TABLE SO_KEY_INFO_TYP(
    SO_KEY_INFO_TYP_ID      INTEGER        NOT NULL,
    SO_KEY_INFO_TYP_NM      VARCHAR(50)    NOT NULL,
    SO_KEY_INFO_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SO_KEY_INFO_TYP_ID)
)
;



-- 
-- TABLE: SO_KIC_FC 
--

CREATE TABLE SO_KIC_FC(
    SO_KIC_FC_ID          INTEGER          NOT NULL,
    SO_FC_ID              INTEGER          NOT NULL,
    SRD_DAY_ID            INTEGER          NOT NULL,
    SO_KEY_INFO_TYP_ID    INTEGER          NOT NULL,
    SO_KIC_RSN_ID         INTEGER          NOT NULL,
    PREV_VAL              VARCHAR(4000)    NOT NULL,
    CRRNT_VAL             VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (SO_KIC_FC_ID)
)
;



-- 
-- TABLE: SO_KIC_RSN 
--

CREATE TABLE SO_KIC_RSN(
    SO_KIC_RSN_ID      INTEGER        NOT NULL,
    SO_KIC_RSN_NM      VARCHAR(50)    NOT NULL,
    SO_KIC_RSN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SO_KIC_RSN_ID)
)
;



-- 
-- TABLE: SO_LIN_FC 
--

CREATE TABLE SO_LIN_FC(
    SO_LIN_FC_ID                        INTEGER           NOT NULL,
    SO_FC_ID                            INTEGER           NOT NULL,
    PQ_LIN_FC_ID                        INTEGER           NOT NULL,
    PO_LIN_FC_ID                        INTEGER           NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID       INTEGER           NOT NULL,
    TRADE_ITM_ID                        INTEGER           NOT NULL,
    MFR_ID                              INTEGER           NOT NULL,
    FNDNG_SRC_ID                        INTEGER           NOT NULL,
    HLTH_ELMNT_ID                       INTEGER           NOT NULL,
    SO_LIN_STAT_ID                      INTEGER           NOT NULL,
    SO_LIN_STAT_RSN_ID                  INTEGER           NOT NULL,
    SRC_LGSTCS_LCTN_ID                  INTEGER           NOT NULL,
    DSTNTN_LGSTCS_LCTN_ID               INTEGER           NOT NULL,
    QTY_UOM_ID                          INTEGER           NOT NULL,
    SHPPNG_MTHD_ID                      INTEGER           NOT NULL,
    FRT_FWDR_ID                         INTEGER           NOT NULL,
    SRC_INCOTERM_ID                     INTEGER           NOT NULL,
    DSTNTN_INCOTERM_ID                  INTEGER           NOT NULL,
    SPPLY_CHN_FRMWRK_ID                 INTEGER           NOT NULL,
    ESTMTD_RDY_FOR_FRT_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    PLND_IN_CNTRY_DT_SRD_DAY_ID         INTEGER           NOT NULL,
    PLND_DLVRY_DT_SRD_DAY_ID            INTEGER           NOT NULL,
    PRJCTD_DLVRY_DT_SRD_DAY_ID          INTEGER           NOT NULL,
    LIN_NUM                             INTEGER           NOT NULL,
    LIN_QTY                             DECIMAL(15, 2)    NOT NULL,
    LIN_EACH_QTY                        DECIMAL(15, 2)    NOT NULL,
    LIN_VAL                             DECIMAL(12, 3),
    LIN_EXW_VAL                         DECIMAL(12, 3)    NOT NULL,
    LIN_DISC_PCTG                       DECIMAL(4, 3)     NOT NULL,
    LIN_DISC_VAL                        DECIMAL(12, 3)    NOT NULL,
    SO_LIN_CYP                          DECIMAL(11, 2)    NOT NULL,
    PRIMARY KEY (SO_LIN_FC_ID)
)
;



-- 
-- TABLE: SO_LIN_STAT 
--

CREATE TABLE SO_LIN_STAT(
    SO_LIN_STAT_ID      INTEGER        NOT NULL,
    SO_LIN_STAT_NM      VARCHAR(50)    NOT NULL,
    SO_LIN_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SO_LIN_STAT_ID)
)
;



-- 
-- TABLE: SO_LIN_STAT_RSN 
--

CREATE TABLE SO_LIN_STAT_RSN(
    SO_LIN_STAT_RSN_ID      INTEGER        NOT NULL,
    SO_LIN_STAT_RSN_NM      VARCHAR(50)    NOT NULL,
    SO_LIN_STAT_RSN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SO_LIN_STAT_RSN_ID)
)
;



-- 
-- TABLE: SO_MLSTN_FC 
--

CREATE TABLE SO_MLSTN_FC(
    SO_MLSTN_FC_ID            INTEGER          NOT NULL,
    SO_FC_ID                  INTEGER          NOT NULL,
    SO_LIN_FC_ID              INTEGER          NOT NULL,
    SO_MLSTN_DT_SRD_DAY_ID    INTEGER          NOT NULL,
    SO_MLSTN_TYP_ID           INTEGER          NOT NULL,
    SO_MLSTN_RSN_ID           INTEGER          NOT NULL,
    SO_MLSTN_RMRKS            VARCHAR(4000)    NOT NULL,
    SO_MLSTN_RSN_RMRKS        VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (SO_MLSTN_FC_ID)
)
;



-- 
-- TABLE: SO_MLSTN_RSN 
--

CREATE TABLE SO_MLSTN_RSN(
    SO_MLSTN_RSN_ID      INTEGER        NOT NULL,
    SO_MLSTN_RSN_NM      VARCHAR(50)    NOT NULL,
    SO_MLSTN_RSN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SO_MLSTN_RSN_ID)
)
;



-- 
-- TABLE: SO_MLSTN_TYP 
--

CREATE TABLE SO_MLSTN_TYP(
    SO_MLSTN_TYP_ID      INTEGER        NOT NULL,
    SO_MLSTN_TYP_NM      VARCHAR(50)    NOT NULL,
    SO_MLSTN_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SO_MLSTN_TYP_ID)
)
;



-- 
-- TABLE: SO_STAT 
--

CREATE TABLE SO_STAT(
    SO_STAT_ID      INTEGER        NOT NULL,
    SO_STAT_NM      VARCHAR(50)    NOT NULL,
    SO_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SO_STAT_ID)
)
;



-- 
-- TABLE: SO_TYP 
--

CREATE TABLE SO_TYP(
    SO_TYP_ID      INTEGER        NOT NULL,
    SO_TYP_NM      VARCHAR(50)    NOT NULL,
    SO_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SO_TYP_ID)
)
;



-- 
-- TABLE: SP_CNSTRNT_TYP 
--

CREATE TABLE SP_CNSTRNT_TYP(
    SP_CNSTRNT_TYP_ID      INTEGER        NOT NULL,
    SP_CNSTRNT_TYP_NM      VARCHAR(50)    NOT NULL,
    SP_CNSTRNT_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SP_CNSTRNT_TYP_ID)
)
;



-- 
-- TABLE: SP_STAT 
--

CREATE TABLE SP_STAT(
    SP_STAT_ID      INTEGER        NOT NULL,
    SP_STAT_NM      VARCHAR(50)    NOT NULL,
    SP_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SP_STAT_ID)
)
;



-- 
-- TABLE: SPPLR 
--

CREATE TABLE SPPLR(
    SPPLR_ID              INTEGER         NOT NULL,
    GS1_COMPANY_PREFIX    VARCHAR(10),
    SPPLR_NM              VARCHAR(50)     NOT NULL,
    SPPLR_DESC            VARCHAR(50)     NOT NULL,
    SPPLR_ADDR_LN_1       VARCHAR(100),
    SPPLR_ADDR_LN_2       VARCHAR(100),
    SPPLR_ADDR_STE        VARCHAR(100),
    SPPLR_ADDR_CTY        VARCHAR(100),
    SPPLR_ADDR_ST         VARCHAR(100)    NOT NULL,
    SPPLR_ADDR_PSTL_CD    VARCHAR(100),
    SPPLR_ADDR_PRVNC      VARCHAR(100),
    SPPLR_ADDR_CNTRY      VARCHAR(100)    NOT NULL,
    SPPLR_CNTCT_NM        VARCHAR(50)     NOT NULL,
    SPPLR_CNTCT_EML       VARCHAR(255),
    PRIMARY KEY (SPPLR_ID)
)
;



-- 
-- TABLE: SPPLR_CNTRCT 
--

CREATE TABLE SPPLR_CNTRCT(
    SPPLR_CNTRCT_ID                         INTEGER           NOT NULL,
    PRCRNG_AGNCY_ID                         INTEGER           NOT NULL,
    IMPLMNTNG_PRTNR_ID                      INTEGER           NOT NULL,
    SPPLR_ID                                INTEGER           NOT NULL,
    TSKORDR_ID                              INTEGER           NOT NULL,
    CRRNCY_ID                               INTEGER           NOT NULL,
    SPPLR_CNTRCT_CTGRY_ID                   INTEGER           NOT NULL,
    SPPLR_CNTRCT_CLSS_ID                    INTEGER           NOT NULL,
    SPPLR_CNTRCT_STAT_ID                    INTEGER           NOT NULL,
    SPPLR_CNTRCT_SUBSTATUS_ID               INTEGER           NOT NULL,
    SPPLR_CNTRCT_NEGOTIATION_STAT_ID        INTEGER           NOT NULL,
    SPPLR_CNTRCT_EXECUTION_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    SPPLR_CNTRCT_END_EFF_DT_SRD_DAY_ID      INTEGER           NOT NULL,
    SPPLR_CNTRCT_BEGIN_EFF_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    SPPLR_CNTRCT_ORGN_ID                    INTEGER           NOT NULL,
    CNTRCT_NUM                              VARCHAR(100)      NOT NULL,
    CNTRCT_VER                              VARCHAR(20),
    SPPLR_CNTRCT_NM                         VARCHAR(75)       NOT NULL,
    SPPLR_CNTRCT_TTL                        VARCHAR(75)       NOT NULL,
    SUBCONTRACT_CEILING                     DECIMAL(12, 3)    NOT NULL,
    PRIMARY KEY (SPPLR_CNTRCT_ID)
)
;



-- 
-- TABLE: SPPLR_CNTRCT_CLSS 
--

CREATE TABLE SPPLR_CNTRCT_CLSS(
    SPPLR_CNTRCT_CLSS_ID      INTEGER        NOT NULL,
    SPPLR_CNTRCT_CLSS_NM      VARCHAR(50)    NOT NULL,
    SPPLR_CNTRCT_CLSS_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SPPLR_CNTRCT_CLSS_ID)
)
;



-- 
-- TABLE: SPPLR_CNTRCT_CTGRY 
--

CREATE TABLE SPPLR_CNTRCT_CTGRY(
    SPPLR_CNTRCT_CTGRY_ID      INTEGER        NOT NULL,
    SPPLR_CNTRCT_CTGRY_NM      VARCHAR(50)    NOT NULL,
    SPPLR_CNTRCT_CTGRY_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SPPLR_CNTRCT_CTGRY_ID)
)
;



-- 
-- TABLE: SPPLR_CNTRCT_NEGOTIATION_STAT 
--

CREATE TABLE SPPLR_CNTRCT_NEGOTIATION_STAT(
    SPPLR_CNTRCT_NEGOTIATION_STAT_ID      INTEGER        NOT NULL,
    SPPLR_CNTRCT_NEGOTIATION_STAT_NM      VARCHAR(50)    NOT NULL,
    SPPLR_CNTRCT_NEGOTIATION_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SPPLR_CNTRCT_NEGOTIATION_STAT_ID)
)
;



-- 
-- TABLE: SPPLR_CNTRCT_ORGN 
--

CREATE TABLE SPPLR_CNTRCT_ORGN(
    SPPLR_CNTRCT_ORGN_ID      INTEGER        NOT NULL,
    SPPLR_CNTRCT_ORGN_NM      VARCHAR(50)    NOT NULL,
    SPPLR_CNTRCT_ORGN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SPPLR_CNTRCT_ORGN_ID)
)
;



-- 
-- TABLE: SPPLR_CNTRCT_PRDCT_DTL 
--

CREATE TABLE SPPLR_CNTRCT_PRDCT_DTL(
    SPPLR_CNTRCT_PRDCT_DTL_ID                         INTEGER           NOT NULL,
    TRADE_ITM_ID                                      INTEGER           NOT NULL,
    MFR_ST_ID                                         INTEGER           NOT NULL,
    SPPLR_CNTRCT_ID                                   INTEGER           NOT NULL,
    SPPLR_CNTRCT_PRDCT_PRICING_TYP_ID                 INTEGER           NOT NULL,
    SPPLR_CNTRCT_PRDCT_DTL_BEGIN_EFF_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    SPPLR_CNTRCT_PRDCT_DTL_END_EFF_DT_SRD_DAY_ID      INTEGER           NOT NULL,
    SPPLR_CNTRCT_PRDCT_DTL_LN_NUM                     INTEGER           NOT NULL,
    SPPLR_CNTRCT_PRDCT_LIST_PRC                       DECIMAL(8, 3)     NOT NULL,
    SPPLR_CNTRCT_PRDCT_TIER_PRC                       DECIMAL(8, 3)     NOT NULL,
    SPPLR_CNTRCT_PRDCT_PRICING_TIER                   SMALLINT          NOT NULL,
    SPPLR_CNTRCT_PRDCT_TIER_MIN_QTY                   DECIMAL(15, 2)    NOT NULL,
    SPPLR_CNTRCT_PRDCT_TIER_MAX_QTY                   DECIMAL(15, 2)    NOT NULL,
    SPPLR_CNTRCT_PRDCT_TIER_QTY_MLTPL                 DECIMAL(15, 2)    NOT NULL,
    PRIMARY KEY (SPPLR_CNTRCT_PRDCT_DTL_ID)
)
;



-- 
-- TABLE: SPPLR_CNTRCT_PRDCT_PRICING_TYP 
--

CREATE TABLE SPPLR_CNTRCT_PRDCT_PRICING_TYP(
    SPPLR_CNTRCT_PRDCT_PRICING_TYP_ID      INTEGER        NOT NULL,
    SPPLR_CNTRCT_PRDCT_PRICING_TYP_NM      VARCHAR(50)    NOT NULL,
    SPPLR_CNTRCT_PRDCT_PRICING_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SPPLR_CNTRCT_PRDCT_PRICING_TYP_ID)
)
;



-- 
-- TABLE: SPPLR_CNTRCT_STAT 
--

CREATE TABLE SPPLR_CNTRCT_STAT(
    SPPLR_CNTRCT_STAT_ID      INTEGER        NOT NULL,
    SPPLR_CNTRCT_STAT_NM      VARCHAR(50)    NOT NULL,
    SPPLR_CNTRCT_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SPPLR_CNTRCT_STAT_ID)
)
;



-- 
-- TABLE: SPPLR_CNTRCT_SUBSTATUS 
--

CREATE TABLE SPPLR_CNTRCT_SUBSTATUS(
    SPPLR_CNTRCT_SUBSTATUS_ID      INTEGER        NOT NULL,
    SPPLR_CNTRCT_SUBSTATUS_NM      VARCHAR(50)    NOT NULL,
    SPPLR_CNTRCT_SUBSTATUS_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SPPLR_CNTRCT_SUBSTATUS_ID)
)
;



-- 
-- TABLE: SPPLR_CNTRCT_TRM_DTL 
--

CREATE TABLE SPPLR_CNTRCT_TRM_DTL(
    SPPLR_CNTRCT_TRM_DTL_ID                     INTEGER         NOT NULL,
    SPPLR_CNTRCT_ID                             INTEGER         NOT NULL,
    SPPLR_CNTRCT_TRM_EXECUTION_DT_SRD_DAY_ID    INTEGER         NOT NULL,
    SPPLR_CNTRCT_TRM_STAT_ID                    INTEGER         NOT NULL,
    SPPLR_CNTRCT_TRM_TYP_ID                     INTEGER         NOT NULL,
    SPPLR_CNTRCT_TRM_DTL_LN_NUM                 INTEGER         NOT NULL,
    SPPLR_CNTRCT_TRM_DTL_VAL                    VARCHAR(250)    NOT NULL,
    PRIMARY KEY (SPPLR_CNTRCT_TRM_DTL_ID)
)
;



-- 
-- TABLE: SPPLR_CNTRCT_TRM_STAT 
--

CREATE TABLE SPPLR_CNTRCT_TRM_STAT(
    SPPLR_CNTRCT_TRM_STAT_ID      INTEGER        NOT NULL,
    SPPLR_CNTRCT_TRM_STAT_NM      VARCHAR(50)    NOT NULL,
    SPPLR_CNTRCT_TRM_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SPPLR_CNTRCT_TRM_STAT_ID)
)
;



-- 
-- TABLE: SPPLR_CNTRCT_TRM_TYP 
--

CREATE TABLE SPPLR_CNTRCT_TRM_TYP(
    SPPLR_CNTRCT_TRM_TYP_ID      INTEGER        NOT NULL,
    SPPLR_CNTRCT_TRM_TYP_NM      VARCHAR(50)    NOT NULL,
    SPPLR_CNTRCT_TRM_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SPPLR_CNTRCT_TRM_TYP_ID)
)
;



-- 
-- TABLE: SPPLY_CHN_FRMWRK 
--

CREATE TABLE SPPLY_CHN_FRMWRK(
    SPPLY_CHN_FRMWRK_ID      INTEGER        NOT NULL,
    SPPLY_CHN_FRMWRK_NM      VARCHAR(50)    NOT NULL,
    SPPLY_CHN_FRMWRK_DESC    VARCHAR(50)    NOT NULL,
    HAS_SP_YNFLG             CHAR(1)        NOT NULL,
    HAS_PR_YNFLG             CHAR(1)        NOT NULL,
    HAS_PO_YNFLG             CHAR(1)        NOT NULL,
    HAS_SO_YNFLG             CHAR(1)        NOT NULL,
    HAS_SHPMNT_LGS_YNFLG     CHAR(1)        NOT NULL,
    HAS_POD_YNFLG            CHAR(1)        NOT NULL,
    PRIMARY KEY (SPPLY_CHN_FRMWRK_ID)
)
;



-- 
-- TABLE: SPPLY_CHN_LVL 
--

CREATE TABLE SPPLY_CHN_LVL(
    SPPLY_CHN_LVL_ID      INTEGER        NOT NULL,
    SPPLY_CHN_LVL_NM      VARCHAR(50)    NOT NULL,
    SPPLY_CHN_LVL_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SPPLY_CHN_LVL_ID)
)
;




-- 
-- TABLE: SRD_DAY 
--

CREATE TABLE SRD_DAY(
    SRD_DAY_ID          INTEGER        NOT NULL,
    SRD_DAY_DT          DATE,
    SRD_DAY_DESC        VARCHAR(25),
    SRD_MTH_DESC        VARCHAR(25),
    SRD_MTH_LNG_DESC    VARCHAR(25)    NOT NULL,
    SRD_QTR_DESC        VARCHAR(25),
    SRD_YR_DESC         VARCHAR(25),
    SRD_FQ_DESC         VARCHAR(25),
    SRD_FY_DESC         VARCHAR(25),
    SRD_MTH_ID          INTEGER        NOT NULL,
    SRD_FQ_ID           INTEGER        NOT NULL,
    SRD_QTR_ID          INTEGER        NOT NULL,
    SRD_FY_ID           INTEGER        NOT NULL,
    SRD_YR_ID           INTEGER        NOT NULL,
    PRIMARY KEY (SRD_DAY_ID)
)
;



-- 
-- TABLE: SRD_MTH 
--

CREATE TABLE SRD_MTH(
    SRD_MTH_ID          INTEGER        NOT NULL,
    SRD_MTH_DESC        VARCHAR(25)    NOT NULL,
    SRD_MTH_LNG_DESC    VARCHAR(25)    NOT NULL,
    SRD_QTR_DESC        VARCHAR(25)    NOT NULL,
    SRD_YR_DESC         VARCHAR(25)    NOT NULL,
    SRD_FQ_DESC         VARCHAR(25)    NOT NULL,
    SRD_FY_DESC         VARCHAR(25)    NOT NULL,
    SRD_QTR_ID          INTEGER        NOT NULL,
    SRD_FQ_ID           INTEGER        NOT NULL,
    SRD_YR_ID           INTEGER        NOT NULL,
    SRD_FY_ID           INTEGER        NOT NULL,
    PRIMARY KEY (SRD_MTH_ID)
)
;



-- 
-- TABLE: SRD_QTR 
--

CREATE TABLE SRD_QTR(
    SRD_QTR_ID      INTEGER        NOT NULL,
    SRD_QTR_DESC    VARCHAR(25)    NOT NULL,
    SRD_YR_DESC     VARCHAR(25)    NOT NULL,
    SRD_FY_DESC     VARCHAR(25)    NOT NULL,
    SRD_YR_ID       INTEGER        NOT NULL,
    SRD_FY_ID       INTEGER        NOT NULL,
    PRIMARY KEY (SRD_QTR_ID)
)
;



-- 
-- TABLE: SRD_YN 
--

CREATE TABLE SRD_YN(
    SRD_YNFLG      CHAR(1)        NOT NULL,
    YN_BOOL_TXT    VARCHAR(50)    NOT NULL,
    YN_TXT         VARCHAR(50)    NOT NULL,
    YN_INT         SMALLINT       NOT NULL,
    PRIMARY KEY (SRD_YNFLG)
)
;



-- 
-- TABLE: SRD_YR 
--

CREATE TABLE SRD_YR(
    SRD_YR_ID      INTEGER        NOT NULL,
    SRD_YR_DESC    VARCHAR(25)    NOT NULL,
    PRIMARY KEY (SRD_YR_ID)
)
;



-- 
-- TABLE: STCK_RPTNG_RT_FC 
--

CREATE TABLE STCK_RPTNG_RT_FC(
    STCK_RPTNG_RT_FC_ID        INTEGER          NOT NULL,
    CNTRY_ID                   INTEGER          NOT NULL,
    CNTRY_PRGRM_ID             INTEGER          NOT NULL,
    SRD_MTH_ID                 INTEGER          NOT NULL,
    ADMNSTRTV_GGRPHY_LVL_ID    INTEGER          NOT NULL,
    STCK_RPTNG_RT              DECIMAL(4, 3)    NOT NULL,
    LCTN_CNT                   INTEGER          NOT NULL,
    LCTN_RPTNG_CNT             INTEGER          NOT NULL,
    PRIMARY KEY (STCK_RPTNG_RT_FC_ID)
)
;



-- 
-- TABLE: STCK_STAT 
--

CREATE TABLE STCK_STAT(
    STCK_STAT_ID      CHAR(10)    NOT NULL,
    STCK_STAT_NM      CHAR(10),
    STCK_STAT_DESC    CHAR(10),
    PRIMARY KEY (STCK_STAT_ID)
)
;



-- 
-- TABLE: SVC_DLVRY_PNT 
--

CREATE TABLE SVC_DLVRY_PNT(
    SVC_DLVRY_PNT_ID      INTEGER        NOT NULL,
    FCLTY_ID              INTEGER        NOT NULL,
    SVC_DLVRY_PNT_NM      VARCHAR(50)    NOT NULL,
    SVC_DLVRY_PNT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SVC_DLVRY_PNT_ID)
)
;



-- 
-- TABLE: SVC_PRDCT_TYP 
--

CREATE TABLE SVC_PRDCT_TYP(
    SVC_PRDCT_TYP_ID      INTEGER        NOT NULL,
    SVC_PRDCT_TYP_NM      VARCHAR(50)    NOT NULL,
    SVC_PRDCT_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (SVC_PRDCT_TYP_ID)
)
;



-- 
-- TABLE: TA_ACTVTY_RSLT_STAT 
--

CREATE TABLE TA_ACTVTY_RSLT_STAT(
    TA_ACTVTY_RSLT_STAT_ID      INTEGER        NOT NULL,
    TA_ACTVTY_RSLT_STAT_NM      VARCHAR(50)    NOT NULL,
    TA_ACTVTY_RSLT_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (TA_ACTVTY_RSLT_STAT_ID)
)
;



-- 
-- TABLE: TA_SKLL_SET 
--

CREATE TABLE TA_SKLL_SET(
    TA_SKLL_SET_ID      INTEGER        NOT NULL,
    TA_SKLL_SET_NM      VARCHAR(50)    NOT NULL,
    TA_SKLL_SET_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (TA_SKLL_SET_ID)
)
;



-- 
-- TABLE: TA_TRVL_PLN_APPRVL_STAT 
--

CREATE TABLE TA_TRVL_PLN_APPRVL_STAT(
    TA_TRVL_PLN_APPRVL_STAT_ID      INTEGER        NOT NULL,
    TA_TRVL_PLN_APPRVL_STAT_NM      VARCHAR(50)    NOT NULL,
    TA_TRVL_PLN_APPRVL_STAT_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (TA_TRVL_PLN_APPRVL_STAT_ID)
)
;



-- 
-- TABLE: TA_TRVL_PLN_CNCRRNC_FC 
--

CREATE TABLE TA_TRVL_PLN_CNCRRNC_FC(
    TA_TRVL_PLN_CNCRRNC_ID           INTEGER          NOT NULL,
    APPRVL_DECISION_DT_SRD_DAY_ID    INTEGER          NOT NULL,
    APPRVL_RQSTD_DT_SRD_DAY_ID       INTEGER          NOT NULL,
    TA_TRVL_PLN_HDR_FC_ID            INTEGER          NOT NULL,
    TA_TRVL_PLN_APPRVL_STAT_ID       INTEGER          NOT NULL,
    APPRVR_NM                        VARCHAR(50)      NOT NULL,
    APPRVR_CMMNTS                    VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (TA_TRVL_PLN_CNCRRNC_ID)
)
;



-- 
-- TABLE: TA_TRVL_PLN_HDR_FC 
--

CREATE TABLE TA_TRVL_PLN_HDR_FC(
    TA_TRVL_PLN_HDR_FC_ID          INTEGER           NOT NULL,
    TA_VST_CTGRY_ID                INTEGER           NOT NULL,
    TA_TRVL_PLN_APPRVL_STAT_ID     INTEGER           NOT NULL,
    SBMSSN_DT_SRD_DAY_ID           INTEGER           NOT NULL,
    APPRVL_DT_SRD_DAY_ID           INTEGER           NOT NULL,
    PLND_TRP_STRT_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    ACTL_TRP_STRT_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    PLND_TRP_END_DT_SRD_DAY_ID     INTEGER           NOT NULL,
    ACTL_TRP_END_DT_SRD_DAY_ID     INTEGER           NOT NULL,
    CNTRY_ID                       INTEGER           NOT NULL,
    HLTH_ELMNT_ID                  INTEGER           NOT NULL,
    DONR_OFFC_ID                   INTEGER           NOT NULL,
    TOLIN_ID                       INTEGER           NOT NULL,
    PRIME_IMPLMNTNG_PRTNR_ID       INTEGER           NOT NULL,
    SUB_IMPLMNTNG_PRTNR_ID         INTEGER           NOT NULL,
    TA_VST_TTL                     VARCHAR(400)      NOT NULL,
    TA_PRPSD_TRVLR_LIST            VARCHAR(250)      NOT NULL,
    TA_PRPSD_TRVLR_CNT             INTEGER           NOT NULL,
    TA_VST_PRE_TRP_LOE             DECIMAL(12, 5)    NOT NULL,
    TA_VST_IN_CNTRY_LOE            DECIMAL(12, 5)    NOT NULL,
    TA_VST_PST_TRP_LOE             DECIMAL(12, 5)    NOT NULL,
    SMMRY_SOW                      VARCHAR(4000)     NOT NULL,
    ESTMTD_TRVL_EXPNSS             DECIMAL(12, 3)    NOT NULL,
    PRIMARY KEY (TA_TRVL_PLN_HDR_FC_ID)
)
;



-- 
-- TABLE: TA_TRVL_PLN_OBJCTV_FC 
--

CREATE TABLE TA_TRVL_PLN_OBJCTV_FC(
    TA_TRVL_PLN_OBJCTV_FC_ID          INTEGER           NOT NULL,
    TA_TRVL_PLN_HDR_FC_ID             INTEGER           NOT NULL,
    TA_SKLL_SET_ID                    INTEGER           NOT NULL,
    FNNCL_RPRT_TCHNCL_SUBSUBCAT_ID    INTEGER           NOT NULL,
    OBJCTV_SEQ_NUM                    SMALLINT          NOT NULL,
    IS_MGMT_YNFLG                     CHAR(1)           NOT NULL,
    SOW_DTL                           VARCHAR(4000)     NOT NULL,
    ESTMTD_LBR_EXPNSS                 DECIMAL(12, 3)    NOT NULL,
    ESTMTD_NON_LBR_EXPNSS             DECIMAL(12, 3)    NOT NULL,
    ESTMTD_LOE_PRSN_DAYS              DECIMAL(12, 5)    NOT NULL,
    PRIMARY KEY (TA_TRVL_PLN_OBJCTV_FC_ID)
)
;



-- 
-- TABLE: TA_VST_ACTVTY_FC 
--

CREATE TABLE TA_VST_ACTVTY_FC(
    TA_VST_ACTVTY_FC_ID               INTEGER           NOT NULL,
    TA_VST_FC_ID                      INTEGER           NOT NULL,
    TA_TRVL_PLN_OBJCTV_FC_ID          INTEGER           NOT NULL,
    TA_ACTVTY_RSLT_STAT_ID            INTEGER           NOT NULL,
    TA_SKLL_SET_ID                    INTEGER           NOT NULL,
    FNNCL_RPRT_TCHNCL_SUBSUBCAT_ID    INTEGER           NOT NULL,
    ACTVTY_SEQ_NUM                    SMALLINT          NOT NULL,
    IS_MGMT_YNFLG                     CHAR(1)           NOT NULL,
    SOW_DTL                           VARCHAR(4000)     NOT NULL,
    WRK_RSLT_CMMNTS                   VARCHAR(4000)     NOT NULL,
    BNFCRY_CMMNTS                     VARCHAR(4000)     NOT NULL,
    ESTMTD_LBR_EXPNSS                 DECIMAL(12, 3)    NOT NULL,
    ESTMTD_NON_LBR_EXPNSS             DECIMAL(12, 3)    NOT NULL,
    PRIMARY KEY (TA_VST_ACTVTY_FC_ID)
)
;



-- 
-- TABLE: TA_VST_CTGRY 
--

CREATE TABLE TA_VST_CTGRY(
    TA_VST_CTGRY_ID      INTEGER        NOT NULL,
    TA_VST_CTGRY_NM      VARCHAR(50)    NOT NULL,
    TA_VST_CTGRY_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (TA_VST_CTGRY_ID)
)
;



-- 
-- TABLE: TA_VST_FC 
--

CREATE TABLE TA_VST_FC(
    TA_VST_FC_ID                   INTEGER           NOT NULL,
    TA_TRVL_PLN_HDR_FC_ID          INTEGER           NOT NULL,
    TA_VST_CTGRY_ID                INTEGER           NOT NULL,
    PLND_TRP_STRT_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    ACTL_TRP_STRT_DT_SRD_DAY_ID    INTEGER           NOT NULL,
    PLND_TRP_END_DT_SRD_DAY_ID     INTEGER           NOT NULL,
    ACTL_TRP_END_DT_SRD_DAY_ID     INTEGER           NOT NULL,
    CNTRY_ID                       INTEGER           NOT NULL,
    HLTH_ELMNT_ID                  INTEGER           NOT NULL,
    DONR_OFFC_ID                   INTEGER           NOT NULL,
    TOLIN_ID                       INTEGER           NOT NULL,
    PRIME_IMPLMNTNG_PRTNR_ID       INTEGER           NOT NULL,
    SUB_IMPLMNTNG_PRTNR_ID         INTEGER           NOT NULL,
    TA_VST_TTL                     VARCHAR(400)      NOT NULL,
    TA_VST_TRVLR_LIST              VARCHAR(255),
    TA_VST_TRVLR_CNT               INTEGER           NOT NULL,
    TA_VST_PRE_TRP_LOE             DECIMAL(12, 5)    NOT NULL,
    TA_VST_IN_CNTRY_LOE            DECIMAL(12, 5)    NOT NULL,
    TA_VST_PST_TRP_LOE             DECIMAL(12, 5)    NOT NULL,
    TA_VST_ORGNL_TOT_LOE           DECIMAL(12, 5)    NOT NULL,
    TA_VST_FNL_TOT_LOE             DECIMAL(12, 5)    NOT NULL,
    TA_VST_TOT_CST                 DECIMAL(12, 3)    NOT NULL,
    PRIMARY KEY (TA_VST_FC_ID)
)
;



-- 
-- TABLE: TA_VST_TECH_RPRT_FC 
--

CREATE TABLE TA_VST_TECH_RPRT_FC(
    TA_VST_TECH_RPRT_FC_ID    INTEGER          NOT NULL,
    TA_VST_FC_ID              INTEGER          NOT NULL,
    TA_VST_ACTVTY_FC_ID       INTEGER          NOT NULL,
    CMMNT_SEQ_NUM             SMALLINT         NOT NULL,
    COMMENTER_NM              VARCHAR(50)      NOT NULL,
    TECH_CMMNTS               VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (TA_VST_TECH_RPRT_FC_ID)
)
;



-- 
-- TABLE: TA_VST_TRP_RPRT_FC 
--

CREATE TABLE TA_VST_TRP_RPRT_FC(
    TA_VST_TRP_RPRT_FC_ID    INTEGER          NOT NULL,
    TA_VST_FC_ID             INTEGER          NOT NULL,
    TA_VST_ACTVTY_FC_ID      INTEGER          NOT NULL,
    CMMNT_SEQ_NUM            SMALLINT         NOT NULL,
    COMMENTER_NM             VARCHAR(50)      NOT NULL,
    TECH_CMMNTS              VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (TA_VST_TRP_RPRT_FC_ID)
)
;



-- 
-- TABLE: TCHNCL_ADVSR_AVLBLTY_FC 
--

CREATE TABLE TCHNCL_ADVSR_AVLBLTY_FC(
    TCHNCL_ADVSR_AVLBLTY_FC_ID    INTEGER        NOT NULL,
    TA_SKLL_SET_ID                INTEGER        NOT NULL,
    TA_VST_CTGRY_ID               INTEGER        NOT NULL,
    PRD_END_DT_SRD_DAY_ID         INTEGER        NOT NULL,
    PRD_STRT_DT_SRD_DAY_ID        INTEGER        NOT NULL,
    TCHNCL_ADVSR_NM               VARCHAR(50)    NOT NULL,
    IS_MGMT_YNFLG                 CHAR(1)        NOT NULL,
    IS_AVAIL_YNFLG                CHAR(1)        NOT NULL,
    IS_SCHDLD_YNFLG               CHAR(10),
    PRIMARY KEY (TCHNCL_ADVSR_AVLBLTY_FC_ID)
)
;



-- 
-- TABLE: THRPTC_FD_FRTFCTN_TYP 
--

CREATE TABLE THRPTC_FD_FRTFCTN_TYP(
    THRPTC_FD_FRTFCTN_TYP_ID      INTEGER        NOT NULL,
    THRPTC_FD_FRTFCTN_TYP_NM      VARCHAR(50)    NOT NULL,
    THRPTC_FD_FRTFCTN_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (THRPTC_FD_FRTFCTN_TYP_ID)
)
;



-- 
-- TABLE: THRPTC_FD_TRTD_CNDTN 
--

CREATE TABLE THRPTC_FD_TRTD_CNDTN(
    THRPTC_FD_TRTD_CNDTN_ID      INTEGER        NOT NULL,
    THRPTC_FD_TRTD_CNDTN_NM      VARCHAR(50)    NOT NULL,
    THRPTC_FD_TRTD_CNDTN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (THRPTC_FD_TRTD_CNDTN_ID)
)
;



-- 
-- TABLE: TOLIN 
--

CREATE TABLE TOLIN(
    TOLIN_ID      INTEGER        NOT NULL,
    TSKORDR_ID    INTEGER        NOT NULL,
    TOLIN_NM      VARCHAR(50)    NOT NULL,
    TOLIN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (TOLIN_ID)
)
;


-- 
-- TABLE: TRADE_ITM 
--

CREATE TABLE TRADE_ITM(
    TRADE_ITM_ID                                             INTEGER          NOT NULL,
    BASETRADEITEM                                            INTEGER          NOT NULL,
    CHILDTRADEITEM                                           INTEGER          NOT NULL,
    MFR_ID                                                   INTEGER          NOT NULL,
    MFR_ST_ID                                                INTEGER,
    USAID_PRDCT_CLSSFCTN_LVL_5_ID                            INTEGER          NOT NULL,
    UNSPSC_CMMDTY_ID                                         INTEGER          NOT NULL,
    GPC_BRCK_ID                                              INTEGER          NOT NULL,
    PRFRRD_GLBL_CLSSFCTN_SYSTM_ID                            INTEGER          NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_4_ID                            INTEGER          NOT NULL,
    CHEMICALPROPERTYTYPEBIOHAZARD_ID                         INTEGER          NOT NULL,
    CANCELLEDDATETIME                                        INTEGER          NOT NULL,
    COMMUNITYVISIBILITYDATETIME                              INTEGER          NOT NULL,
    CONSUMERAVAILABILITYDATETIME                             INTEGER          NOT NULL,
    DISCONTINUEDDATETIME                                     INTEGER          NOT NULL,
    EFFECTIVEDATETIME                                        INTEGER          NOT NULL,
    ENDAVAILABILITYDATETIME                                  INTEGER          NOT NULL,
    FINALBATCHEXPIRYDATETIME                                 INTEGER          NOT NULL,
    PUBLICATIONDATETIME                                      INTEGER          NOT NULL,
    TRADE_ITM_UNIT_OF_ISSU_ID                                INTEGER          NOT NULL,
    TRADE_ITM_BASE_UOM_ID                                    INTEGER          NOT NULL,
    PACKAGINGTYPECODE_ID                                     INTEGER          NOT NULL,
    PKG_MARKED_LANGUAGE_CD_ID                                INTEGER          NOT NULL,
    WT_UOM_ID                                                INTEGER          NOT NULL,
    VOL_UOM_ID                                               INTEGER          NOT NULL,
    DEPTH_LNR_UOM_ID                                         INTEGER          NOT NULL,
    WDTH_LNR_UOM_ID                                          INTEGER          NOT NULL,
    HT_LNR_UOM_ID                                            INTEGER          NOT NULL,
    ROUTEOFADMINISTRATION_ID                                 INTEGER          NOT NULL,
    DRG_UOD_ID                                               INTEGER          NOT NULL,
    DOSAGEFORMTYPE_ID                                        INTEGER          NOT NULL,
    DRG_FRMLRY_ID                                            INTEGER          NOT NULL,
    DRG_UOP_ID                                               INTEGER          NOT NULL,
    DRG_UOS_ID                                               INTEGER          NOT NULL,
    ANTIMLRL_PRDCT_TYP_ID                                    INTEGER          NOT NULL,
    ANTIMLRL_PRMRY_ACTV_INGRDNT_ID                           INTEGER          NOT NULL,
    ANTIMLRL_SCNDRY_ACTV_INGRDNT_ID                          INTEGER          NOT NULL,
    THRPTC_FD_FRTFCTN_TYP_ID                                 INTEGER          NOT NULL,
    THRPTC_FD_TRTD_CNDTN_ID                                  INTEGER          NOT NULL,
    LAB_SPPLY_PRDCT_TYP_ID                                   INTEGER          NOT NULL,
    LAB_EQPMNT_PRDCT_TYP_ID                                  INTEGER          NOT NULL,
    PRH_PRDCT_TYP_ID                                         INTEGER          NOT NULL,
    PRH_CNTRCPTV_MTHD_ID                                     INTEGER          NOT NULL,
    FML_CNDM_PRDCT_TYP_ID                                    INTEGER          NOT NULL,
    CNDM_PRDCT_MTRL_ID                                       INTEGER          NOT NULL,
    CNDM_PRDCT_SZ_ID                                         INTEGER          NOT NULL,
    CNDM_PRDCT_FLVR_ID                                       INTEGER          NOT NULL,
    CNDM_PRDCT_SCNT_ID                                       INTEGER          NOT NULL,
    CNDM_PRDCT_CLR_ID                                        INTEGER          NOT NULL,
    CNDM_PRDCT_TXTR_ID                                       INTEGER          NOT NULL,
    CNDM_PRDCT_NVLTY_TYP_ID                                  INTEGER          NOT NULL,
    PRH_PRDCT_SPRMCD_ACTV_INGRDNT_ID                         INTEGER          NOT NULL,
    IUD_TYP_ID                                               INTEGER          NOT NULL,
    IUD_ACTV_INGRDNT_ID                                      INTEGER          NOT NULL,
    RTK_TGT_PTHGN_ID                                         INTEGER          NOT NULL,
    MED_DVC_PRDCT_TYP_ID                                     INTEGER          NOT NULL,
    GMDN_ID                                                  INTEGER          NOT NULL,
    UMDNS_ID                                                 INTEGER          NOT NULL,
    SVC_PRDCT_TYP_ID                                         INTEGER          NOT NULL,
    DESCRIPTIONSHORT                                         VARCHAR(35)      NOT NULL,
    TRADE_ITM_LNG_NM                                         VARCHAR(150)     NOT NULL,
    BRANDNAME                                                VARCHAR(70)      NOT NULL,
    BRANDOWNER                                               VARCHAR(200)     NOT NULL,
    FUNCTIONALNAME                                           VARCHAR(35)      NOT NULL,
    TRADEITEMDESCRIPTION                                     VARCHAR(200)     NOT NULL,
    TRADEITEMMARKINGDESCRIPTION                              VARCHAR(200)     NOT NULL,
    GLOBALTRADEITEMNUMBER                                    VARCHAR(14),
    TRADE_ITM_UPC                                            VARCHAR(13),
    TRADE_ITM_SKU                                            VARCHAR(15),
    NETWEIGHT                                                DECIMAL(9, 3),
    NETWEIGHT_MEASUREMENTUNITCODE                            VARCHAR(80)      NOT NULL,
    GROSSWEIGHT                                              DECIMAL(9, 3)    NOT NULL,
    GROSSWEIGHT_MEASUREMENTUNITCODE                          VARCHAR(80)      NOT NULL,
    NETCONTENT                                               VARCHAR(80)      NOT NULL,
    NETCONTENT_MEASUREMENTUNITCODE                           VARCHAR(80)      NOT NULL,
    DEPTH                                                    DECIMAL(9, 3),
    DEPTH_MEASUREMENTUNITCODE                                VARCHAR(80)      NOT NULL,
    HT                                                       DECIMAL(9, 3),
    HEIGHT_MEASUREMENTUNITCODE                               VARCHAR(80)      NOT NULL,
    WDTH                                                     DECIMAL(9, 3),
    WIDTH_MEASUREMENTUNITCODE                                VARCHAR(80)      NOT NULL,
    VOL                                                      DECIMAL(9, 3)    NOT NULL,
    VOLUME_MEASUREMENTUNITCODE                               VARCHAR(80)      NOT NULL,
    SIZECODELISTAGENCY                                       VARCHAR(80)      NOT NULL,
    SIZECODELISTCODE                                         VARCHAR(80)      NOT NULL,
    SIZECODEVALUE                                            VARCHAR(80)      NOT NULL,
    DESCRIPTIVESIZE                                          VARCHAR(80)      NOT NULL,
    TRADE_ITM_DLVRY_LEAD_TIME_DAYS                           INTEGER          NOT NULL,
    MINIMUMTRADEITEMLIFESPANFROMTIMEOFARRIVAL                INTEGER          NOT NULL,
    MINIMUMTRADEITEMLIFESPANFROMTIMEOFPRODUCTION             INTEGER          NOT NULL,
    OPENEDTRADEITEMLIFESPAN                                  INTEGER          NOT NULL,
    STORAGEHANDLINGTEMPERATUREMAXIMUM                        DECIMAL(9, 3)    NOT NULL,
    STORAGEHANDLINGTEMPERATUREMAXIMUM_MEASUREMENTUNITCODE    VARCHAR(70)      NOT NULL,
    STORAGEHANDLINGTEMPERATUREMINIMUM                        DECIMAL(9, 3)    NOT NULL,
    STORAGEHANDLINGTEMPERATUREMINIMUM_MEASUREMENTUNITCODE    VARCHAR(70)      NOT NULL,
    ORDERQUANTITYMULTIPLE                                    INTEGER          NOT NULL,
    ORDERQUANTITYMINIMUM                                     INTEGER          NOT NULL,
    ORDERQUANTITYMAXIMUM                                     INTEGER          NOT NULL,
    TRADE_ITM_PCKNG_NOTES                                    VARCHAR(250)     NOT NULL,
    TRADE_ITM_PKG_LVL                                        SMALLINT         NOT NULL,
    TRADE_ITM_UNITS_PER_CRTN                                 INTEGER          NOT NULL,
    TRADE_ITM_UNITS_PER_INNR_CRTN                            INTEGER          NOT NULL,
    ISTRADEITEMABASEUNIT                                     VARCHAR(15)      NOT NULL,
    ISTRADEITEMAVARIABLEUNIT                                 VARCHAR(15)      NOT NULL,
    ISTRADEITEMACONSUMERUNIT                                 VARCHAR(15)      NOT NULL,
    ISTRADEITEMASERVICE                                      VARCHAR(15)      NOT NULL,
    BASEUNITSPERPALLET                                       INTEGER          NOT NULL,
    QUANTITYOFTRADEITEMSPERPALLET                            INTEGER          NOT NULL,
    QUANTITYOFLAYERSPERPALLET                                INTEGER          NOT NULL,
    QUANTITYOFTRADEITEMSPERPALLETLAYER                       INTEGER          NOT NULL,
    QUANTITYOFTRADEITEMSCONTAINEDINACOMPLETELAYER            INTEGER          NOT NULL,
    quantityOfNextLowerLevelTradeItem                        INTEGER          NOT NULL,
    TOTALQUANTITYOFNEXTLOWERLEVELTRADEITEM                   INTEGER          NOT NULL,
    TOTALQUANTITYOFBASEITEMS                                 INTEGER          NOT NULL,
    QUANTITYOFCOMPLETELAYERSCONTAINEDINATRADEITEM            INTEGER          NOT NULL,
    COUNTABLEITEMSC1D1                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC1D2                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC1D3                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC1D4                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC1D5                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC2D1                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC2D2                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC2D3                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC2D4                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC2D5                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC3D1                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC3D2                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC3D3                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC3D4                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC3D5                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC4D1                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC4D2                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC4D3                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC4D4                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC4D5                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC5D1                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC5D2                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC5D3                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC5D4                                       INTEGER          NOT NULL,
    COUNTABLEITEMSC5D5                                       INTEGER          NOT NULL,
    TRADE_ITM_MFR_PRDCTN_CPCTY_PER_YR                        INTEGER          NOT NULL,
    DRG_INN_NM                                               VARCHAR(100)     NOT NULL,
    DRG_GNRC_NM                                              VARCHAR(50)      NOT NULL,
    DRG_INNVTR_NM                                            VARCHAR(50)      NOT NULL,
    DRG_STR                                                  DECIMAL(7, 3),
    DRG_DSG_AMT                                              DECIMAL(7, 3),
    GENERICDESCRIPTION                                       VARCHAR(500)     NOT NULL,
    CONTROLLEDNARCOTICDRUGNUMBER                             VARCHAR(10)      NOT NULL,
    MEDICINECONTAINERTYPECODEC1                              VARCHAR(10)      NOT NULL,
    MEDICINECONTAINERTYPECODEC2                              VARCHAR(10)      NOT NULL,
    MEDICINECONTAINERTYPECODEC3                              VARCHAR(10)      NOT NULL,
    MEDICINECONTAINERTYPECODEC4                              VARCHAR(10)      NOT NULL,
    MEDICINECONTAINERTYPECODEC5                              VARCHAR(10)      NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC1D1                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC1D2                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC1D3                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC1D4                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC1D5                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC2D1                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC2D2                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC2D3                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC2D4                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC2D5                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC3D1                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC3D2                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC3D3                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC3D4                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC3D5                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC4D1                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC4D2                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC4D3                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC4D4                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC4D5                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC5D1                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC5D2                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC5D3                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC5D4                        VARCHAR(255)     NOT NULL,
    PROPRIETARYMEDICATIONDOSEFORMC5D5                        VARCHAR(255)     NOT NULL,
    NOOFIDENTICALMEDICINECONTAINERSORDEVICESC1               INTEGER          NOT NULL,
    NOOFIDENTICALMEDICINECONTAINERSORDEVICESC2               INTEGER          NOT NULL,
    NOOFIDENTICALMEDICINECONTAINERSORDEVICESC3               INTEGER          NOT NULL,
    NOOFIDENTICALMEDICINECONTAINERSORDEVICESC4               INTEGER          NOT NULL,
    NOOFIDENTICALMEDICINECONTAINERSORDEVICESC5               INTEGER          NOT NULL,
    HEALTHCARECOMPONENTTYPEC1                                CHAR(1),
    HEALTHCARECOMPONENTTYPEC2                                CHAR(1),
    HEALTHCARECOMPONENTTYPEC3                                CHAR(1),
    HEALTHCARECOMPONENTTYPEC4                                CHAR(1),
    HEALTHCARECOMPONENTTYPEC5                                CHAR(1),
    LAB_EQPMNT_CPBLTY_DESC                                   VARCHAR(250)     NOT NULL,
    LAB_SPPLY_USES_QTY                                       VARCHAR(50)      NOT NULL,
    PRH_CNTRCPTV_MTHD_MTHS_OF_PRTCTN                         INTEGER          NOT NULL,
    PRH_IMPLNTBL_CNTRCPTV_LFSPN_MTHS                         INTEGER          NOT NULL,
    PRH_IUD_LFSPN_MTHS                                       INTEGER          NOT NULL,
    PRH_CNDM_LBRCTD_YNFLG                                    CHAR(1)          NOT NULL,
    PRH_CNDM_SPCL_FOIL_TXT                                   VARCHAR(250)     NOT NULL,
    PRH_CNDM_CLR_TXT                                         VARCHAR(50)      NOT NULL,
    PRH_CNDM_EXTRNL_RTTN_FTR                                 VARCHAR(50)      NOT NULL,
    PRH_CNDM_INTRNL_RTTN_FTR                                 VARCHAR(50)      NOT NULL,
    DOESTRADEITEMCONTAINLATEX                                VARCHAR(15)      NOT NULL,
    RTK_USES                                                 INTEGER          NOT NULL,
    MED_DVC_USFDA_PRDCT_CD_NUM                               VARCHAR(20),
    MED_DVC_USFDA_PRDCT_CD_DESC                              VARCHAR(50)      NOT NULL,
    ISTRADEITEMREQUIREDTOREMAINSTERILE                       VARCHAR(15)      NOT NULL,
    INITIALMANUFACTURERSTERILISATION                         VARCHAR(35)      NOT NULL,
    SVC_PRDCT_ESTMTD_STFFNG_CNT                              INTEGER          NOT NULL,
    SVC_PRDCT_ESTMTD_DUR_MTHS                                INTEGER          NOT NULL,
    BARCODETYPE                                              VARCHAR(80)      NOT NULL,
    BARCODEVALUETYPE                                         VARCHAR(80)      NOT NULL,
    COLORDESCRIPTION                                         VARCHAR(200)     NOT NULL,
    COLORCODELISTAGENCY                                      VARCHAR(80)      NOT NULL,
    COLORCODEVALUE                                           VARCHAR(80)      NOT NULL,
    ISTRADEITEMAHAZARDOUSGOOD                                VARCHAR(15)      NOT NULL,
    DIETTYPECODE                                             VARCHAR(80)      NOT NULL,
    TRADEITEMVARIANT                                         VARCHAR(70)      NOT NULL,
    PRIMARY KEY (TRADE_ITM_ID)
)
;



-- 
-- TABLE: TRADE_ITM_ASSCTN 
--

CREATE TABLE TRADE_ITM_ASSCTN(
    TRADE_ITM_ASSCTN_ID        INTEGER          NOT NULL,
    TRADE_ITM_ASSCTN_TYP_ID    INTEGER          NOT NULL,
    PRNT_TRADE_ITM_ID          INTEGER          NOT NULL,
    CHLD_TRADE_ITM_ID          INTEGER          NOT NULL,
    CNTRY_ID                   INTEGER          NOT NULL,
    ASSCTN_ACTV_YNFLG          CHAR(1)          NOT NULL,
    PRNT_CHLD_EXCLSV_YNFLG     CHAR(1)          NOT NULL,
    CHLD_PRNT_EXCLSV_YNFLG     CHAR(1)          NOT NULL,
    ASSCTN_NOTES               VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (TRADE_ITM_ASSCTN_ID)
)
;



-- 
-- TABLE: TRADE_ITM_ASSCTN_TYP 
--

CREATE TABLE TRADE_ITM_ASSCTN_TYP(
    TRADE_ITM_ASSCTN_TYP_ID      INTEGER        NOT NULL,
    TRADE_ITM_ASSCTN_TYP_NM      VARCHAR(50)    NOT NULL,
    TRADE_ITM_ASSCTN_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (TRADE_ITM_ASSCTN_TYP_ID)
)
;



-- 
-- TABLE: TRADE_ITM_BASE_UOM 
--

CREATE TABLE TRADE_ITM_BASE_UOM(
    TRADE_ITM_BASE_UOM_ID      INTEGER        NOT NULL,
    TRADE_ITM_BASE_UOM_NM      VARCHAR(50)    NOT NULL,
    TRADE_ITM_BASE_UOM_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (TRADE_ITM_BASE_UOM_ID)
)
;



-- 
-- TABLE: TRADE_ITM_CARE_INSTRCTN 
--

CREATE TABLE TRADE_ITM_CARE_INSTRCTN(
    TRADE_ITM_CARE_INSTRCTN_ID              INTEGER          NOT NULL,
    CARE_INSTRCTN_TYP_ID                    INTEGER          NOT NULL,
    TRADE_ITM_ID                            INTEGER          NOT NULL,
    TRADE_ITM_CARE_INSTRCTN_VAL_LOW         VARCHAR(50)      NOT NULL,
    TRADE_ITM_CARE_INSTRCTN_VAL_HGH         VARCHAR(50)      NOT NULL,
    TRADE_ITM_CARE_INSTRCTN_VAL_TXT_LIST    VARCHAR(50)      NOT NULL,
    TRADE_ITM_CARE_INSTRCTN_CMMNTS          VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (TRADE_ITM_CARE_INSTRCTN_ID)
)
;



-- 
-- TABLE: TRADE_ITM_CMPST_ASSCTN 
--

CREATE TABLE TRADE_ITM_CMPST_ASSCTN(
    TRADE_ITM_CMPST_ASSCTN_ID        INTEGER          NOT NULL,
    TRADE_ITM_CMPST_ASSCTN_TYP_ID    INTEGER          NOT NULL,
    PRNT_TRADE_ITM_ID                INTEGER          NOT NULL,
    MEMBER_TRADE_ITM_ID              INTEGER          NOT NULL,
    CNTRY_ID                         INTEGER          NOT NULL,
    ASSCTN_ACTV_YNFLG                CHAR(1)          NOT NULL,
    SBSTTTBL_YNFLG                   CHAR(1)          NOT NULL,
    OMTTBL_YNFLG                     CHAR(1)          NOT NULL,
    CMPST_QTY                        INTEGER          NOT NULL,
    ASSCTN_NOTES                     VARCHAR(4000)    NOT NULL,
    PRIMARY KEY (TRADE_ITM_CMPST_ASSCTN_ID)
)
;



-- 
-- TABLE: TRADE_ITM_CMPST_ASSCTN_TYP 
--

CREATE TABLE TRADE_ITM_CMPST_ASSCTN_TYP(
    TRADE_ITM_CMPST_ASSCTN_TYP_ID      INTEGER        NOT NULL,
    TRADE_ITM_CMPST_ASSCTN_TYP_NM      VARCHAR(50)    NOT NULL,
    TRADE_ITM_CMPST_ASSCTN_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (TRADE_ITM_CMPST_ASSCTN_TYP_ID)
)
;



-- 
-- TABLE: TRADE_ITM_PRCHSNG_RSTRCTN 
--

CREATE TABLE TRADE_ITM_PRCHSNG_RSTRCTN(
    TRADE_ITM_PRCHSNG_INSTRCTN_ID             INTEGER        NOT NULL,
    PRCHSNG_RSTRCTN_TYP_ID                    INTEGER        NOT NULL,
    TRADE_ITM_ID                              INTEGER        NOT NULL,
    TRADE_ITM_PRCHSNG_PRCHSNG_VAL_LOW         VARCHAR(50)    NOT NULL,
    TRADE_ITM_PRCHSNG_PRCHSNG_VAL_HGH         VARCHAR(50)    NOT NULL,
    TRADE_ITM_PRCHSNG_PRCHSNG_VAL_TXT_LIST    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (TRADE_ITM_PRCHSNG_INSTRCTN_ID)
)
;




-- 
-- TABLE: TRADE_ITM_UNIT_OF_ISSU 
--

CREATE TABLE TRADE_ITM_UNIT_OF_ISSU(
    TRADE_ITM_UNIT_OF_ISSU_ID      INTEGER        NOT NULL,
    TRADE_ITM_UNIT_OF_ISSU_NM      VARCHAR(50)    NOT NULL,
    TRADE_ITM_UNIT_OF_ISSU_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (TRADE_ITM_UNIT_OF_ISSU_ID)
)
;



-- 
-- TABLE: TRADEITEMSTACKING 
--

CREATE TABLE TRADEITEMSTACKING(
    TRADEITEMSTACKING_ID                         INTEGER          NOT NULL,
    TRADE_ITM_ID                                 INTEGER          NOT NULL,
    STACKINGFACTOR_SEQNUM                        SMALLINT         NOT NULL,
    STACKINGFACTOR                               SMALLINT         NOT NULL,
    STACKINGFACTORTYPECODE                       VARCHAR(10)      NOT NULL,
    STACKINGWEIGHTMAXIMUM                        DECIMAL(9, 3)    NOT NULL,
    STACKINGWEIGHTMAXIMUM_MEASUREMENTUNITCODE    VARCHAR(70)      NOT NULL,
    PRIMARY KEY (TRADEITEMSTACKING_ID)
)
;



-- 
-- TABLE: TRCR_CMMDTY_CTGRY 
--

CREATE TABLE TRCR_CMMDTY_CTGRY(
    TRCR_CMMDTY_CTGRY_ID      INTEGER         NOT NULL,
    TRCR_CMMDTY_SET_ID        INTEGER         NOT NULL,
    TRCR_CMMDTY_CTGRY_NM      VARCHAR(150)    NOT NULL,
    TRCR_CMMDTY_CTGRY_DESC    VARCHAR(50)     NOT NULL,
    PRIMARY KEY (TRCR_CMMDTY_CTGRY_ID)
)
;



-- 
-- TABLE: TRCR_CMMDTY_SET 
--

CREATE TABLE TRCR_CMMDTY_SET(
    TRCR_CMMDTY_SET_ID      INTEGER        NOT NULL,
    CNTRY_ID                INTEGER        NOT NULL,
    CNTRY_PRGRM_ID          INTEGER        NOT NULL,
    TRCR_CMMDTY_SET_NM      VARCHAR(50)    NOT NULL,
    TRCR_CMMDTY_SET_DESC    VARCHAR(50)    NOT NULL,
    CNTRY_MNGD_YNFLG        CHAR(1)        NOT NULL,
    PRIMARY KEY (TRCR_CMMDTY_SET_ID)
)
;



-- 
-- TABLE: TRCR_CMMDTY_TYP 
--

CREATE TABLE TRCR_CMMDTY_TYP(
    TRCR_CMMDTY_TYP_ID      INTEGER         NOT NULL,
    TRCR_CMMDTY_CTGRY_ID    INTEGER         NOT NULL,
    TRCR_CMMDTY_TYP_NM      VARCHAR(150)    NOT NULL,
    TRCR_CMMDTY_TYP_DESC    VARCHAR(50)     NOT NULL,
    IS_DFLT_TYP_YNFLG       CHAR(1)         NOT NULL,
    PRIMARY KEY (TRCR_CMMDTY_TYP_ID)
)
;



-- 
-- TABLE: TSKORDR 
--

CREATE TABLE TSKORDR(
    TSKORDR_ID                  INTEGER        NOT NULL,
    CNTRCT_AWD_ID               INTEGER        NOT NULL,
    CNTRCT_AWD_GGRPHC_SCP_ID    INTEGER        NOT NULL,
    CNTRY_ID                    INTEGER,
    TSKORDR_NM                  VARCHAR(50)    NOT NULL,
    TSKORDR_DESC                VARCHAR(50)    NOT NULL,
    PRIMARY KEY (TSKORDR_ID)
)
;



-- 
-- TABLE: TST_RSLT_VAL_UOM 
--

CREATE TABLE TST_RSLT_VAL_UOM(
    TST_RSLT_VAL_UOM_ID      INTEGER        NOT NULL,
    TST_RSLT_VAL_UOM_NM      VARCHAR(50)    NOT NULL,
    TST_RSLT_VAL_UOM_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (TST_RSLT_VAL_UOM_ID)
)
;



-- 
-- TABLE: UMDNS 
--

CREATE TABLE UMDNS(
    UMDNS_ID     INTEGER         NOT NULL,
    UMDNS_CD     VARCHAR(20)     NOT NULL,
    UMDNS_TRM    VARCHAR(50)     NOT NULL,
    UMDNS_DEF    VARCHAR(250)    NOT NULL,
    PRIMARY KEY (UMDNS_ID)
)
;



-- 
-- TABLE: UNSPSC_CLSS 
--

CREATE TABLE UNSPSC_CLSS(
    UNSPSC_CLSS_ID        INTEGER          NOT NULL,
    UNSPSC_FMLY_ID        INTEGER          NOT NULL,
    UNSPSC_CLSS_KEY       VARCHAR(10)      NOT NULL,
    UNSPSC_CLSS_CD        VARCHAR(10)      NOT NULL,
    UNSPSC_CLSS_TTL       VARCHAR(500)     NOT NULL,
    UNSPSC_CLSS_DEF       VARCHAR(4000)    NOT NULL,
    UNSPSC_CLSS_SYNNYM    VARCHAR(500)     NOT NULL,
    PRIMARY KEY (UNSPSC_CLSS_ID)
)
;



-- 
-- TABLE: UNSPSC_CMMDTY 
--

CREATE TABLE UNSPSC_CMMDTY(
    UNSPSC_CMMDTY_ID     INTEGER          NOT NULL,
    UNSPSC_CLSS_ID       INTEGER          NOT NULL,
    UNSPSC_CMMDTY_KEY    VARCHAR(10)      NOT NULL,
    UNSPSC_CMMDTY_CD     VARCHAR(10)      NOT NULL,
    UNSPSC_CMMDTY_DEF    VARCHAR(4000)    NOT NULL,
    UNSPSC_CMMDTY_TTL    VARCHAR(500)     NOT NULL,
    PRIMARY KEY (UNSPSC_CMMDTY_ID)
)
;



-- 
-- TABLE: UNSPSC_FMLY 
--

CREATE TABLE UNSPSC_FMLY(
    UNSPSC_FMLY_ID        INTEGER          NOT NULL,
    UNSPSC_SGMNT_ID       INTEGER          NOT NULL,
    UNSPSC_FMLY_KEY       VARCHAR(10)      NOT NULL,
    UNSPSC_FMLY_CD        VARCHAR(10)      NOT NULL,
    UNSPSC_FMLY_TTL       VARCHAR(500)     NOT NULL,
    UNSPSC_FMLY_DEF       VARCHAR(4000)    NOT NULL,
    UNSPSC_FMLY_SYNNYM    VARCHAR(500)     NOT NULL,
    PRIMARY KEY (UNSPSC_FMLY_ID)
)
;



-- 
-- TABLE: UNSPSC_SGMNT 
--

CREATE TABLE UNSPSC_SGMNT(
    UNSPSC_SGMNT_ID        INTEGER          NOT NULL,
    UNSPSC_SGMNT_KEY       VARCHAR(10),
    UNSPSC_SGMNT_CD        VARCHAR(10),
    UNSPSC_SGMNT_TTL       VARCHAR(500),
    UNSPSC_SGMNT_DEF       VARCHAR(4000),
    UNSPSC_SGMNT_SYNNYM    VARCHAR(500),
    PRIMARY KEY (UNSPSC_SGMNT_ID)
)
;



-- 
-- TABLE: URGNCY_TYP 
--

CREATE TABLE URGNCY_TYP(
    URGNCY_TYP_ID      INTEGER        NOT NULL,
    URGNCY_TYP_NM      VARCHAR(50)    NOT NULL,
    URGNCY_TYP_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (URGNCY_TYP_ID)
)
;



-- 
-- TABLE: USAID_MISSN 
--

CREATE TABLE USAID_MISSN(
    USAID_MISSN_ID      INTEGER        NOT NULL,
    USAID_MISSN_NM      VARCHAR(50)    NOT NULL,
    USAID_MISSN_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (USAID_MISSN_ID)
)
;



-- 
-- TABLE: USAID_PRDCT_CLSSFCTN_LVL_1 
--

CREATE TABLE USAID_PRDCT_CLSSFCTN_LVL_1(
    USAID_PRDCT_CLSSFCTN_LVL_1_ID        INTEGER          NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_1_KEY       VARCHAR(10)      NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_1_CD        VARCHAR(10)      NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_1_TTL       VARCHAR(500)     NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_1_DEF       VARCHAR(4000)    NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_1_SYNNYM    VARCHAR(500)     NOT NULL,
    PRIMARY KEY (USAID_PRDCT_CLSSFCTN_LVL_1_ID)
)
;



-- 
-- TABLE: USAID_PRDCT_CLSSFCTN_LVL_2 
--

CREATE TABLE USAID_PRDCT_CLSSFCTN_LVL_2(
    USAID_PRDCT_CLSSFCTN_LVL_2_ID        INTEGER          NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_1_ID        INTEGER          NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_2_KEY       VARCHAR(10)      NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_2_CD        VARCHAR(10)      NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_2_TTL       VARCHAR(500)     NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_2_DEF       VARCHAR(4000)    NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_2_SYNNYM    VARCHAR(500)     NOT NULL,
    PRIMARY KEY (USAID_PRDCT_CLSSFCTN_LVL_2_ID)
)
;



-- 
-- TABLE: USAID_PRDCT_CLSSFCTN_LVL_3 
--

CREATE TABLE USAID_PRDCT_CLSSFCTN_LVL_3(
    USAID_PRDCT_CLSSFCTN_LVL_3_ID        INTEGER          NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_2_ID        INTEGER          NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_3_KEY       VARCHAR(10)      NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_3_CD        VARCHAR(10)      NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_3_TTL       VARCHAR(500)     NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_3_DEF       VARCHAR(4000)    NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_3_SYNNYM    VARCHAR(500)     NOT NULL,
    PRIMARY KEY (USAID_PRDCT_CLSSFCTN_LVL_3_ID)
)
;



-- 
-- TABLE: USAID_PRDCT_CLSSFCTN_LVL_4 
--

CREATE TABLE USAID_PRDCT_CLSSFCTN_LVL_4(
    USAID_PRDCT_CLSSFCTN_LVL_4_ID        INTEGER          NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_3_ID        INTEGER          NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_4_KEY       VARCHAR(10)      NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_4_CD        VARCHAR(10)      NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_4_TTL       VARCHAR(500)     NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_4_DEF       VARCHAR(4000)    NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_4_SYNNYM    VARCHAR(500)     NOT NULL,
    PRIMARY KEY (USAID_PRDCT_CLSSFCTN_LVL_4_ID)
)
;



-- 
-- TABLE: USAID_PRDCT_CLSSFCTN_LVL_5 
--

CREATE TABLE USAID_PRDCT_CLSSFCTN_LVL_5(
    USAID_PRDCT_CLSSFCTN_LVL_5_ID       INTEGER          NOT NULL,
    PRDCT_LN_ID                         INTEGER          NOT NULL,
    UNSPSC_CMMDTY_ID                    INTEGER          NOT NULL,
    GPC_BRCK_ID                         INTEGER          NOT NULL,
    PRFRRD_GLBL_CLSSFCTN_SYSTM_ID       INTEGER          NOT NULL,
    USAID_PRDCT_CLSSFCTN_LVL_4_ID       INTEGER          NOT NULL,
    TRADE_ITM_UNIT_OF_ISSU_ID           INTEGER          NOT NULL,
    TRADE_ITM_BASE_UOM_ID               INTEGER          NOT NULL,
    WT_UOM_ID                           INTEGER          NOT NULL,
    VOL_UOM_ID                          INTEGER          NOT NULL,
    DEPTH_LNR_UOM_ID                    INTEGER          NOT NULL,
    WDTH_LNR_UOM_ID                     INTEGER          NOT NULL,
    HT_LNR_UOM_ID                       INTEGER          NOT NULL,
    ROUTEOFADMINISTRATION_ID            INTEGER          NOT NULL,
    DRG_UOD_ID                          INTEGER          NOT NULL,
    DOSAGEFORMTYPE_ID                   INTEGER          NOT NULL,
    DRG_FRMLRY_ID                       INTEGER          NOT NULL,
    DRG_UOP_ID                          INTEGER          NOT NULL,
    DRG_UOS_ID                          INTEGER          NOT NULL,
    ANTIMLRL_PRDCT_TYP_ID               INTEGER          NOT NULL,
    ANTIMLRL_PRMRY_ACTV_INGRDNT_ID      INTEGER          NOT NULL,
    ANTIMLRL_SCNDRY_ACTV_INGRDNT_ID     INTEGER          NOT NULL,
    THRPTC_FD_FRTFCTN_TYP_ID            INTEGER          NOT NULL,
    THRPTC_FD_TRTD_CNDTN_ID             INTEGER          NOT NULL,
    LAB_SPPLY_PRDCT_TYP_ID              INTEGER          NOT NULL,
    LAB_EQPMNT_PRDCT_TYP_ID             INTEGER          NOT NULL,
    PRH_PRDCT_TYP_ID                    INTEGER          NOT NULL,
    PRH_CNTRCPTV_MTHD_ID                INTEGER          NOT NULL,
    FML_CNDM_PRDCT_TYP_ID               INTEGER          NOT NULL,
    CNDM_PRDCT_MTRL_ID                  INTEGER          NOT NULL,
    CNDM_PRDCT_SZ_ID                    INTEGER          NOT NULL,
    CNDM_PRDCT_FLVR_ID                  INTEGER          NOT NULL,
    CNDM_PRDCT_SCNT_ID                  INTEGER          NOT NULL,
    CNDM_PRDCT_CLR_ID                   INTEGER          NOT NULL,
    CNDM_PRDCT_TXTR_ID                  INTEGER          NOT NULL,
    CNDM_PRDCT_NVLTY_TYP_ID             INTEGER          NOT NULL,
    PRH_PRDCT_SPRMCD_ACTV_INGRDNT_ID    INTEGER          NOT NULL,
    IUD_TYP_ID                          INTEGER          NOT NULL,
    IUD_ACTV_INGRDNT_ID                 INTEGER          NOT NULL,
    RTK_TGT_PTHGN_ID                    INTEGER          NOT NULL,
    MED_DVC_PRDCT_TYP_ID                INTEGER          NOT NULL,
    GMDN_ID                             INTEGER          NOT NULL,
    UMDNS_ID                            INTEGER          NOT NULL,
    SVC_PRDCT_TYP_ID                    INTEGER          NOT NULL,
    DESCRIPTIONSHORT                    VARCHAR(35)      NOT NULL,
    PRDCT_LNG_NM                        VARCHAR(150)     NOT NULL,
    PRDCT_BRND_NM                       VARCHAR(150)     NOT NULL,
    PRDCT_DESC                          VARCHAR(250)     NOT NULL,
    PRDCT_TAG_SET                       VARCHAR(4000),
    PRDCT_PATH_SET                      VARCHAR(4000),
    PRDCT_UUID                          VARCHAR(36),
    PRDCT_WT_PER_UNIT                   DECIMAL(9, 3),
    PRDCT_DEPTH_PER_UNIT                DECIMAL(9, 3),
    PRDCT_WDTH_PER_UNIT                 DECIMAL(9, 3)    NOT NULL,
    PRDCT_HT_PER_UNIT                   DECIMAL(9, 3),
    PRDCT_RDS_PER_UNIT                  DECIMAL(9, 3),
    PRDCT_VOL_PER_UNIT                  DECIMAL(9, 3)    NOT NULL,
    PRDCT_SHLF_LIFE_DAYS                INTEGER          NOT NULL,
    DRG_INN_NM                          VARCHAR(100)     NOT NULL,
    DRG_GNRC_NM                         VARCHAR(50)      NOT NULL,
    DRG_INNVTR_NM                       VARCHAR(50)      NOT NULL,
    DRG_STR                             DECIMAL(7, 3),
    DRG_DSG_AMT                         DECIMAL(7, 3),
    LAB_EQPMNT_CPBLTY_DESC              VARCHAR(250)     NOT NULL,
    LAB_SPPLY_USES_QTY                  VARCHAR(50)      NOT NULL,
    CYP_FCTR                            DECIMAL(8, 4),
    PRH_CNTRCPTV_MTHD_MTHS_OF_PRTCTN    INTEGER          NOT NULL,
    PRH_IMPLNTBL_CNTRCPTV_LFSPN_MTHS    INTEGER          NOT NULL,
    PRH_IUD_LFSPN_MTHS                  INTEGER          NOT NULL,
    PRH_CNDM_LBRCTD_YNFLG               CHAR(1)          NOT NULL,
    PRH_CNDM_SPCL_FOIL_TXT              VARCHAR(250)     NOT NULL,
    PRH_CNDM_CLR_TXT                    VARCHAR(50)      NOT NULL,
    PRH_CNDM_EXTRNL_RTTN_FTR            VARCHAR(50)      NOT NULL,
    PRH_CNDM_INTRNL_RTTN_FTR            VARCHAR(50)      NOT NULL,
    RTK_USES                            INTEGER          NOT NULL,
    MED_DVC_USFDA_PRDCT_CD_NUM          VARCHAR(20),
    MED_DVC_USFDA_PRDCT_CD_DESC         VARCHAR(50)      NOT NULL,
    SVC_PRDCT_ESTMTD_STFFNG_CNT         INTEGER          NOT NULL,
    SVC_PRDCT_ESTMTD_DUR_MTHS           INTEGER          NOT NULL,
    PRIMARY KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
)
;



-- 
-- TABLE: USAID_RDC 
--

CREATE TABLE USAID_RDC(
    USAID_RDC_ID      INTEGER        NOT NULL,
    CNTRY_ID          INTEGER        NOT NULL,
    RGN_ID            INTEGER        NOT NULL,
    USAID_RDC_NM      VARCHAR(50)    NOT NULL,
    USAID_RDC_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (USAID_RDC_ID)
)
;



-- 
-- TABLE: VOL_UOM 
--

CREATE TABLE VOL_UOM(
    VOL_UOM_ID      INTEGER        NOT NULL,
    VOL_UOM_NM      VARCHAR(50)    NOT NULL,
    VOL_UOM_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (VOL_UOM_ID)
)
;



-- 
-- TABLE: WT_UOM 
--

CREATE TABLE WT_UOM(
    WT_UOM_ID      INTEGER        NOT NULL,
    WT_UOM_NM      VARCHAR(50)    NOT NULL,
    WT_UOM_DESC    VARCHAR(50)    NOT NULL,
    PRIMARY KEY (WT_UOM_ID)
)
;



-- 
-- TABLE: ADDITIONALTRADEITEMCLASSIFICATION 
--

ALTER TABLE ADDITIONALTRADEITEMCLASSIFICATION ADD 
    FOREIGN KEY (TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;


-- 
-- TABLE: ADDITIONALTRADEITEMDESCRIPTION 
--

ALTER TABLE ADDITIONALTRADEITEMDESCRIPTION ADD 
    FOREIGN KEY (TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;


-- 
-- TABLE: ADDITIONALTRADEITEMIDENTIFICATION 
--

ALTER TABLE ADDITIONALTRADEITEMIDENTIFICATION ADD 
    FOREIGN KEY (TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;


-- 
-- TABLE: ADMNSTRTV_GGRPHY 
--

ALTER TABLE ADMNSTRTV_GGRPHY ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;


-- 
-- TABLE: ADMNSTRTV_GGRPHY_LVL_1 
--

ALTER TABLE ADMNSTRTV_GGRPHY_LVL_1 ADD 
    FOREIGN KEY (ADMNSTRTV_GGRPHY_ID)
    REFERENCES ADMNSTRTV_GGRPHY(ADMNSTRTV_GGRPHY_ID)
;

ALTER TABLE ADMNSTRTV_GGRPHY_LVL_1 ADD 
    FOREIGN KEY (ADMNSTRTV_GGRPHY_LVL_ID)
    REFERENCES ADMNSTRTV_GGRPHY_LVL(ADMNSTRTV_GGRPHY_LVL_ID)
;


-- 
-- TABLE: ADMNSTRTV_GGRPHY_LVL_2 
--

ALTER TABLE ADMNSTRTV_GGRPHY_LVL_2 ADD 
    FOREIGN KEY (ADMNSTRTV_GGRPHY_LVL_1_ID)
    REFERENCES ADMNSTRTV_GGRPHY_LVL_1(ADMNSTRTV_GGRPHY_LVL_1_ID)
;

ALTER TABLE ADMNSTRTV_GGRPHY_LVL_2 ADD 
    FOREIGN KEY (ADMNSTRTV_GGRPHY_ID)
    REFERENCES ADMNSTRTV_GGRPHY(ADMNSTRTV_GGRPHY_ID)
;

ALTER TABLE ADMNSTRTV_GGRPHY_LVL_2 ADD 
    FOREIGN KEY (ADMNSTRTV_GGRPHY_LVL_ID)
    REFERENCES ADMNSTRTV_GGRPHY_LVL(ADMNSTRTV_GGRPHY_LVL_ID)
;


-- 
-- TABLE: ADMNSTRTV_GGRPHY_LVL_3 
--

ALTER TABLE ADMNSTRTV_GGRPHY_LVL_3 ADD 
    FOREIGN KEY (ADMNSTRTV_GGRPHY_LVL_2_ID)
    REFERENCES ADMNSTRTV_GGRPHY_LVL_2(ADMNSTRTV_GGRPHY_LVL_2_ID)
;

ALTER TABLE ADMNSTRTV_GGRPHY_LVL_3 ADD 
    FOREIGN KEY (ADMNSTRTV_GGRPHY_ID)
    REFERENCES ADMNSTRTV_GGRPHY(ADMNSTRTV_GGRPHY_ID)
;

ALTER TABLE ADMNSTRTV_GGRPHY_LVL_3 ADD 
    FOREIGN KEY (ADMNSTRTV_GGRPHY_LVL_ID)
    REFERENCES ADMNSTRTV_GGRPHY_LVL(ADMNSTRTV_GGRPHY_LVL_ID)
;


-- 
-- TABLE: ADMNSTRTV_GGRPHY_LVL_4 
--

ALTER TABLE ADMNSTRTV_GGRPHY_LVL_4 ADD 
    FOREIGN KEY (ADMNSTRTV_GGRPHY_LVL_3_ID)
    REFERENCES ADMNSTRTV_GGRPHY_LVL_3(ADMNSTRTV_GGRPHY_LVL_3_ID)
;

ALTER TABLE ADMNSTRTV_GGRPHY_LVL_4 ADD 
    FOREIGN KEY (ADMNSTRTV_GGRPHY_ID)
    REFERENCES ADMNSTRTV_GGRPHY(ADMNSTRTV_GGRPHY_ID)
;

ALTER TABLE ADMNSTRTV_GGRPHY_LVL_4 ADD 
    FOREIGN KEY (ADMNSTRTV_GGRPHY_LVL_ID)
    REFERENCES ADMNSTRTV_GGRPHY_LVL(ADMNSTRTV_GGRPHY_LVL_ID)
;


-- 
-- TABLE: AWP_RPRT_FC 
--

ALTER TABLE AWP_RPRT_FC ADD 
    FOREIGN KEY (SUB_IMPLMNTNG_PRTNR_ID)
    REFERENCES IMPLMNTNG_PRTNR(IMPLMNTNG_PRTNR_ID)
;

ALTER TABLE AWP_RPRT_FC ADD 
    FOREIGN KEY (FNNCL_RPRT_TCHNCL_SUBSUBCAT_ID)
    REFERENCES FNNCL_RPRT_TCHNCL_SUBSUBCAT(FNNCL_RPRT_TCHNCL_SUBSUBCAT_ID)
;

ALTER TABLE AWP_RPRT_FC ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE AWP_RPRT_FC ADD 
    FOREIGN KEY (CNTRCT_AWD_ID)
    REFERENCES CNTRCT_AWD(CNTRCT_AWD_ID)
;

ALTER TABLE AWP_RPRT_FC ADD 
    FOREIGN KEY (FNNCL_RPRT_PRD_SRD_FY_ID)
    REFERENCES SRD_YR(SRD_YR_ID)
;

ALTER TABLE AWP_RPRT_FC ADD 
    FOREIGN KEY (FNNCL_RPRT_CHRG_LCTN_ID)
    REFERENCES FNNCL_RPRT_CHRG_LCTN(FNNCL_RPRT_CHRG_LCTN_ID)
;

ALTER TABLE AWP_RPRT_FC ADD 
    FOREIGN KEY (FNNCL_RPRT_SBMSSN_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE AWP_RPRT_FC ADD 
    FOREIGN KEY (FNNCL_RPRT_EFF_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE AWP_RPRT_FC ADD 
    FOREIGN KEY (HLTH_ELMNT_ID)
    REFERENCES HLTH_ELMNT(HLTH_ELMNT_ID)
;

ALTER TABLE AWP_RPRT_FC ADD 
    FOREIGN KEY (FNNCL_RPRT_CTGRY_LVL_ID)
    REFERENCES FNNCL_RPRT_CTGRY_LVL(FNNCL_RPRT_CTGRY_LVL_ID)
;

ALTER TABLE AWP_RPRT_FC ADD 
    FOREIGN KEY (FNNCL_RPRT_CTGRY_ID)
    REFERENCES FNNCL_RPRT_CTGRY(FNNCL_RPRT_CTGRY_ID)
;

ALTER TABLE AWP_RPRT_FC ADD 
    FOREIGN KEY (PRIME_IMPLMNTNG_PRTNR_ID)
    REFERENCES IMPLMNTNG_PRTNR(IMPLMNTNG_PRTNR_ID)
;

ALTER TABLE AWP_RPRT_FC ADD 
    FOREIGN KEY (STAFF_LCTN_CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE AWP_RPRT_FC ADD 
    FOREIGN KEY (USAID_MISSN_ID)
    REFERENCES USAID_MISSN(USAID_MISSN_ID)
;

ALTER TABLE AWP_RPRT_FC ADD 
    FOREIGN KEY (FNNCL_RPRT_TCHNCL_SUBCAT_ID)
    REFERENCES FNNCL_RPRT_TCHNCL_SUBCAT(FNNCL_RPRT_TCHNCL_SUBCAT_ID)
;

ALTER TABLE AWP_RPRT_FC ADD 
    FOREIGN KEY (TSKORDR_ID)
    REFERENCES TSKORDR(TSKORDR_ID)
;

ALTER TABLE AWP_RPRT_FC ADD 
    FOREIGN KEY (FNNCL_RPRT_ACTVTY_TYP_ID)
    REFERENCES FNNCL_RPRT_ACTVTY_TYP(FNNCL_RPRT_ACTVTY_TYP_ID)
;



-- 
-- TABLE: CMS 
--

ALTER TABLE CMS ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;


-- 
-- TABLE: CNCRT_PRDCT 
--

ALTER TABLE CNCRT_PRDCT ADD 
    FOREIGN KEY (MFR_ID)
    REFERENCES MFR(MFR_ID)
;

ALTER TABLE CNCRT_PRDCT ADD 
    FOREIGN KEY (SPPLR_ID)
    REFERENCES SPPLR(SPPLR_ID)
;


-- 
-- TABLE: CNTRCT_AWD 
--

ALTER TABLE CNTRCT_AWD ADD 
    FOREIGN KEY (IMPLMNTNG_PRTNR_ID)
    REFERENCES IMPLMNTNG_PRTNR(IMPLMNTNG_PRTNR_ID)
;

ALTER TABLE CNTRCT_AWD ADD 
    FOREIGN KEY (CNTRCT_AWD_TYP_ID)
    REFERENCES CNTRCT_AWD_TYP(CNTRCT_AWD_TYP_ID)
;


-- 
-- TABLE: CNTRY_CNSMPTN_FCAST_FC 
--

ALTER TABLE CNTRY_CNSMPTN_FCAST_FC ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE CNTRY_CNSMPTN_FCAST_FC ADD 
    FOREIGN KEY (CNTRY_PRGRM_ID)
    REFERENCES CNTRY_PRGRM(CNTRY_PRGRM_ID)
;

ALTER TABLE CNTRY_CNSMPTN_FCAST_FC ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;

ALTER TABLE CNTRY_CNSMPTN_FCAST_FC ADD 
    FOREIGN KEY (RPRT_PRD_TYP_ID)
    REFERENCES RPRT_PRD_TYP(RPRT_PRD_TYP_ID)
;

ALTER TABLE CNTRY_CNSMPTN_FCAST_FC ADD 
    FOREIGN KEY (FCAST_END_SRD_MTH_ID)
    REFERENCES SRD_MTH(SRD_MTH_ID)
;

ALTER TABLE CNTRY_CNSMPTN_FCAST_FC ADD 
    FOREIGN KEY (FCAST_BEGIN_SRD_MTH_ID)
    REFERENCES SRD_MTH(SRD_MTH_ID)
;

ALTER TABLE CNTRY_CNSMPTN_FCAST_FC ADD 
    FOREIGN KEY (FCAST_SBMSSN_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE CNTRY_CNSMPTN_FCAST_FC ADD 
    FOREIGN KEY (FCAST_PRD_END_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;


-- 
-- TABLE: CNTRY_LGSTCS_RPRT_FC 
--

ALTER TABLE CNTRY_LGSTCS_RPRT_FC ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE CNTRY_LGSTCS_RPRT_FC ADD 
    FOREIGN KEY (CNTRY_PRGRM_ID)
    REFERENCES CNTRY_PRGRM(CNTRY_PRGRM_ID)
;

ALTER TABLE CNTRY_LGSTCS_RPRT_FC ADD 
    FOREIGN KEY (TO_ST_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE CNTRY_LGSTCS_RPRT_FC ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;

ALTER TABLE CNTRY_LGSTCS_RPRT_FC ADD 
    FOREIGN KEY (FROM_ST_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE CNTRY_LGSTCS_RPRT_FC ADD 
    FOREIGN KEY (OBSERVED_ST_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE CNTRY_LGSTCS_RPRT_FC ADD 
    FOREIGN KEY (TRANS_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE CNTRY_LGSTCS_RPRT_FC ADD 
    FOREIGN KEY (OBSRVTN_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;


-- 
-- TABLE: CNTRY_PRCRMNT_BUREAU 
--

ALTER TABLE CNTRY_PRCRMNT_BUREAU ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;


-- 
-- TABLE: CNTRY_PRGRM 
--

ALTER TABLE CNTRY_PRGRM ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE CNTRY_PRGRM ADD 
    FOREIGN KEY (PRGRM_ORG_ID)
    REFERENCES PRGRM_ORG(PRGRM_ORG_ID)
;

ALTER TABLE CNTRY_PRGRM ADD 
    FOREIGN KEY (CNTRY_PRGRM_TYP_ID)
    REFERENCES CNTRY_PRGRM_TYP(CNTRY_PRGRM_TYP_ID)
;


-- 
-- TABLE: CNTRY_RCT_FCAST_FC 
--

ALTER TABLE CNTRY_RCT_FCAST_FC ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;

ALTER TABLE CNTRY_RCT_FCAST_FC ADD 
    FOREIGN KEY (RPRT_PRD_TYP_ID)
    REFERENCES RPRT_PRD_TYP(RPRT_PRD_TYP_ID)
;

ALTER TABLE CNTRY_RCT_FCAST_FC ADD 
    FOREIGN KEY (FCAST_BEGIN_SRD_MTH_ID)
    REFERENCES SRD_MTH(SRD_MTH_ID)
;

ALTER TABLE CNTRY_RCT_FCAST_FC ADD 
    FOREIGN KEY (FORECASET_PRD_END_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE CNTRY_RCT_FCAST_FC ADD 
    FOREIGN KEY (FCAST_PRD_END_DT_SRD_DAY_ID)
    REFERENCES CNTRY_PRGRM(CNTRY_PRGRM_ID)
;

ALTER TABLE CNTRY_RCT_FCAST_FC ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE CNTRY_RCT_FCAST_FC ADD 
    FOREIGN KEY (FCAST_END_SRD_MTH_ID)
    REFERENCES SRD_MTH(SRD_MTH_ID)
;

ALTER TABLE CNTRY_RCT_FCAST_FC ADD 
    FOREIGN KEY (FCAST_SBMSSN_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;



-- 
-- TABLE: CNTRY_TRADE_ITM_CRTFCN 
--

ALTER TABLE CNTRY_TRADE_ITM_CRTFCN ADD 
    FOREIGN KEY (PRDCT_CRTFCN_TYP_ID)
    REFERENCES PRDCT_CRTFCN_TYP(PRDCT_CRTFCN_TYP_ID)
;

ALTER TABLE CNTRY_TRADE_ITM_CRTFCN ADD 
    FOREIGN KEY (EFF_END_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE CNTRY_TRADE_ITM_CRTFCN ADD 
    FOREIGN KEY (EFF_STRT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE CNTRY_TRADE_ITM_CRTFCN ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE CNTRY_TRADE_ITM_CRTFCN ADD 
    FOREIGN KEY (TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;

ALTER TABLE CNTRY_TRADE_ITM_CRTFCN ADD 
    FOREIGN KEY (SPPLR_CNTRCT_PRDCT_DTL_ID)
    REFERENCES SPPLR_CNTRCT_PRDCT_DTL(SPPLR_CNTRCT_PRDCT_DTL_ID)
;


-- 
-- TABLE: CNTRY_TRADE_ITM_HUMANITARIAN_WAIVER 
--

ALTER TABLE CNTRY_TRADE_ITM_HUMANITARIAN_WAIVER ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE CNTRY_TRADE_ITM_HUMANITARIAN_WAIVER ADD 
    FOREIGN KEY (TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;

ALTER TABLE CNTRY_TRADE_ITM_HUMANITARIAN_WAIVER ADD 
    FOREIGN KEY (EFF_STRT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE CNTRY_TRADE_ITM_HUMANITARIAN_WAIVER ADD 
    FOREIGN KEY (EFF_END_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE CNTRY_TRADE_ITM_HUMANITARIAN_WAIVER ADD 
    FOREIGN KEY (SPPLR_CNTRCT_PRDCT_DTL_ID)
    REFERENCES SPPLR_CNTRCT_PRDCT_DTL(SPPLR_CNTRCT_PRDCT_DTL_ID)
;


-- 
-- TABLE: CNTRY_TRADE_ITM_RGSTRTN 
--

ALTER TABLE CNTRY_TRADE_ITM_RGSTRTN ADD 
    FOREIGN KEY (RGSTRTN_EFF_STRT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE CNTRY_TRADE_ITM_RGSTRTN ADD 
    FOREIGN KEY (RGSTRTN_EFF_END_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE CNTRY_TRADE_ITM_RGSTRTN ADD 
    FOREIGN KEY (DSTNTN_CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE CNTRY_TRADE_ITM_RGSTRTN ADD 
    FOREIGN KEY (TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;

ALTER TABLE CNTRY_TRADE_ITM_RGSTRTN ADD 
    FOREIGN KEY (MFR_ID)
    REFERENCES MFR(MFR_ID)
;

ALTER TABLE CNTRY_TRADE_ITM_RGSTRTN ADD 
    FOREIGN KEY (MFR_ST_ID)
    REFERENCES MFR_ST(MFR_ST_ID)
;

ALTER TABLE CNTRY_TRADE_ITM_RGSTRTN ADD 
    FOREIGN KEY (SPPLR_ID)
    REFERENCES SPPLR(SPPLR_ID)
;

ALTER TABLE CNTRY_TRADE_ITM_RGSTRTN ADD 
    FOREIGN KEY (SPPLR_CNTRCT_PRDCT_DTL_ID)
    REFERENCES SPPLR_CNTRCT_PRDCT_DTL(SPPLR_CNTRCT_PRDCT_DTL_ID)
;


-- 
-- TABLE: CRRNCY 
--

ALTER TABLE CRRNCY ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;


-- 
-- TABLE: CRRNCY_EXCHNG_RT 
--

ALTER TABLE CRRNCY_EXCHNG_RT ADD 
    FOREIGN KEY (CRRNCY_ID)
    REFERENCES CRRNCY(CRRNCY_ID)
;

ALTER TABLE CRRNCY_EXCHNG_RT ADD 
    FOREIGN KEY (CRRNCY_EXCHNG_RT_VLD_TO_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE CRRNCY_EXCHNG_RT ADD 
    FOREIGN KEY (CRRNCY_EXCHNG_RT_VLD_FROM_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;


-- 
-- TABLE: DIST 
--

ALTER TABLE DIST ADD 
    FOREIGN KEY (RGN_ID)
    REFERENCES RGN(RGN_ID)
;


-- 
-- TABLE: DMS 
--

ALTER TABLE DMS ADD 
    FOREIGN KEY (RMS_ID)
    REFERENCES RMS(RMS_ID)
;


-- 
-- TABLE: DONR_ACTVTY 
--

ALTER TABLE DONR_ACTVTY ADD 
    FOREIGN KEY (DONR_AGNCY_ID)
    REFERENCES DONR_AGNCY(DONR_AGNCY_ID)
;

ALTER TABLE DONR_ACTVTY ADD 
    FOREIGN KEY (DONR_ACTVTY_CTGRY_ID)
    REFERENCES DONR_ACTVTY_CTGRY(DONR_ACTVTY_CTGRY_ID)
;


-- 
-- TABLE: DONR_AGNCY 
--

ALTER TABLE DONR_AGNCY ADD 
    FOREIGN KEY (DONR_AGNCY_TYP_ID)
    REFERENCES DONR_AGNCY_TYP(DONR_AGNCY_TYP_ID)
;


-- 
-- TABLE: DONR_OFFC 
--

ALTER TABLE DONR_OFFC ADD 
    FOREIGN KEY (DONR_AGNCY_ID)
    REFERENCES DONR_AGNCY(DONR_AGNCY_ID)
;


-- 
-- TABLE: EXPCTD_TO_CRRY_FC 
--

ALTER TABLE EXPCTD_TO_CRRY_FC ADD 
    FOREIGN KEY (LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE EXPCTD_TO_CRRY_FC ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE EXPCTD_TO_CRRY_FC ADD 
    FOREIGN KEY (CNTRY_PRGRM_ID)
    REFERENCES CNTRY_PRGRM(CNTRY_PRGRM_ID)
;

ALTER TABLE EXPCTD_TO_CRRY_FC ADD 
    FOREIGN KEY (EXPCTD_TO_CRRY_BEGIN_EFF_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE EXPCTD_TO_CRRY_FC ADD 
    FOREIGN KEY (EXPCTD_TO_CRRY_END_EFF_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE EXPCTD_TO_CRRY_FC ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;

ALTER TABLE EXPCTD_TO_CRRY_FC ADD 
    FOREIGN KEY (ADMNSTRTV_GGRPHY_LVL_ID)
    REFERENCES ADMNSTRTV_GGRPHY_LVL(ADMNSTRTV_GGRPHY_LVL_ID)
;


-- 
-- TABLE: FCLTY 
--

ALTER TABLE FCLTY ADD 
    FOREIGN KEY (DIST_ID)
    REFERENCES DIST(DIST_ID)
;


-- 
-- TABLE: FNNCL_RPRT_ACTVTY_TYP 
--

ALTER TABLE FNNCL_RPRT_ACTVTY_TYP ADD 
    FOREIGN KEY (FNNCL_RPRT_ACTVTY_PRPS_ID)
    REFERENCES FNNCL_RPRT_ACTVTY_PRPS(FNNCL_RPRT_ACTVTY_PRPS_ID)
;


-- 
-- TABLE: FNNCL_RPRT_TCHNCL_SUBCAT 
--

ALTER TABLE FNNCL_RPRT_TCHNCL_SUBCAT ADD 
    FOREIGN KEY (FNNCL_RPRT_TCHNCL_CTGRY_ID)
    REFERENCES FNNCL_RPRT_TCHNCL_CTGRY(FNNCL_RPRT_TCHNCL_CTGRY_ID)
;


-- 
-- TABLE: FNNCL_RPRT_TCHNCL_SUBSUBCAT 
--

ALTER TABLE FNNCL_RPRT_TCHNCL_SUBSUBCAT ADD 
    FOREIGN KEY (FNNCL_RPRT_TCHNCL_SUBCAT_ID)
    REFERENCES FNNCL_RPRT_TCHNCL_SUBCAT(FNNCL_RPRT_TCHNCL_SUBCAT_ID)
;

ALTER TABLE FNNCL_RPRT_TCHNCL_SUBSUBCAT ADD 
    FOREIGN KEY (IMPLMNTNG_PRTNR_ID)
    REFERENCES IMPLMNTNG_PRTNR(IMPLMNTNG_PRTNR_ID)
;


-- 
-- TABLE: FNNCL_STTMNT_FC 
--

ALTER TABLE FNNCL_STTMNT_FC ADD 
    FOREIGN KEY (TSKORDR_ID)
    REFERENCES TSKORDR(TSKORDR_ID)
;

ALTER TABLE FNNCL_STTMNT_FC ADD 
    FOREIGN KEY (PRIME_IMPLMNTNG_PRTNR_ID)
    REFERENCES IMPLMNTNG_PRTNR(IMPLMNTNG_PRTNR_ID)
;

ALTER TABLE FNNCL_STTMNT_FC ADD 
    FOREIGN KEY (CNTRCT_AWD_ID)
    REFERENCES CNTRCT_AWD(CNTRCT_AWD_ID)
;

ALTER TABLE FNNCL_STTMNT_FC ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE FNNCL_STTMNT_FC ADD 
    FOREIGN KEY (FNNCL_RPRT_PRD_SRD_MTH_ID)
    REFERENCES SRD_MTH(SRD_MTH_ID)
;

ALTER TABLE FNNCL_STTMNT_FC ADD 
    FOREIGN KEY (FNNCL_RPRT_TCHNCL_SUBSUBCAT_ID)
    REFERENCES FNNCL_RPRT_TCHNCL_SUBSUBCAT(FNNCL_RPRT_TCHNCL_SUBSUBCAT_ID)
;

ALTER TABLE FNNCL_STTMNT_FC ADD 
    FOREIGN KEY (FNNCL_RPRT_CHRG_LCTN_ID)
    REFERENCES FNNCL_RPRT_CHRG_LCTN(FNNCL_RPRT_CHRG_LCTN_ID)
;

ALTER TABLE FNNCL_STTMNT_FC ADD 
    FOREIGN KEY (FNNCL_RPRT_SBMSSN_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE FNNCL_STTMNT_FC ADD 
    FOREIGN KEY (FNNCL_RPRT_EFF_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE FNNCL_STTMNT_FC ADD 
    FOREIGN KEY (FNNCL_RPRT_CTGRY_ID)
    REFERENCES FNNCL_RPRT_CTGRY(FNNCL_RPRT_CTGRY_ID)
;

ALTER TABLE FNNCL_STTMNT_FC ADD 
    FOREIGN KEY (SUB_IMPLMNTNG_PRTNR_ID)
    REFERENCES IMPLMNTNG_PRTNR(IMPLMNTNG_PRTNR_ID)
;

ALTER TABLE FNNCL_STTMNT_FC ADD 
    FOREIGN KEY (FNNCL_RPRT_CTGRY_LVL_ID)
    REFERENCES FNNCL_RPRT_CTGRY_LVL(FNNCL_RPRT_CTGRY_LVL_ID)
;

ALTER TABLE FNNCL_STTMNT_FC ADD 
    FOREIGN KEY (USAID_MISSN_ID)
    REFERENCES USAID_MISSN(USAID_MISSN_ID)
;

ALTER TABLE FNNCL_STTMNT_FC ADD 
    FOREIGN KEY (STAFF_LCTN_CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE FNNCL_STTMNT_FC ADD 
    FOREIGN KEY (HLTH_ELMNT_ID)
    REFERENCES HLTH_ELMNT(HLTH_ELMNT_ID)
;

ALTER TABLE FNNCL_STTMNT_FC ADD 
    FOREIGN KEY (FNNCL_RPRT_TCHNCL_SUBCAT_ID)
    REFERENCES FNNCL_RPRT_TCHNCL_SUBCAT(FNNCL_RPRT_TCHNCL_SUBCAT_ID)
;

ALTER TABLE FNNCL_STTMNT_FC ADD 
    FOREIGN KEY (FNNCL_RPRT_ACTVTY_TYP_ID)
    REFERENCES FNNCL_RPRT_ACTVTY_TYP(FNNCL_RPRT_ACTVTY_TYP_ID)
;


-- 
-- TABLE: GPC_BRCK 
--

ALTER TABLE GPC_BRCK ADD 
    FOREIGN KEY (GPC_CLSS_ID)
    REFERENCES GPC_CLSS(GPC_CLSS_ID)
;


-- 
-- TABLE: GPC_CLSS 
--

ALTER TABLE GPC_CLSS ADD 
    FOREIGN KEY (GPC_FMLY_ID)
    REFERENCES GPC_FMLY(GPC_FMLY_ID)
;


-- 
-- TABLE: GPC_FMLY 
--

ALTER TABLE GPC_FMLY ADD 
    FOREIGN KEY (GPC_SGMNT_ID)
    REFERENCES GPC_SGMNT(GPC_SGMNT_ID)
;


-- 
-- TABLE: GRN_DLY_FC 
--

ALTER TABLE GRN_DLY_FC ADD 
    FOREIGN KEY (GRN_DLY_RSN_ID)
    REFERENCES GRN_DLY_RSN(GRN_DLY_RSN_ID)
;

ALTER TABLE GRN_DLY_FC ADD 
    FOREIGN KEY (GRN_DLY_TYP_ID)
    REFERENCES GRN_DLY_TYP(GRN_DLY_TYP_ID)
;

ALTER TABLE GRN_DLY_FC ADD 
    FOREIGN KEY (GRN_FC_ID)
    REFERENCES GRN_FC(GRN_FC_ID)
;

ALTER TABLE GRN_DLY_FC ADD 
    FOREIGN KEY (DT_DLY_CLRD_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE GRN_DLY_FC ADD 
    FOREIGN KEY (DT_DLY_STARTED_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;


-- 
-- TABLE: GRN_DLY_TYP 
--

ALTER TABLE GRN_DLY_TYP ADD 
    FOREIGN KEY (GRN_DLY_RSPNSBL_PRTY_ID)
    REFERENCES GRN_DLY_RSPNSBL_PRTY(GRN_DLY_RSPNSBL_PRTY_ID)
;


-- 
-- TABLE: GRN_FC 
--

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (GRN_TYP_ID)
    REFERENCES GRN_TYP(GRN_TYP_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (TSKORDR_ID)
    REFERENCES TSKORDR(TSKORDR_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (SRC_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (DSTNTN_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (SHPPNG_MTHD_ID)
    REFERENCES SHPPNG_MTHD(SHPPNG_MTHD_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (FRT_FWDR_ID)
    REFERENCES FRT_FWDR(FRT_FWDR_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (GRN_STAT_ID)
    REFERENCES GRN_STAT(GRN_STAT_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (GRN_DOC_CMPLTN_STAT_ID)
    REFERENCES GRN_DOC_CMPLTN_STAT(GRN_DOC_CMPLTN_STAT_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (PPLN_ORDR_DISP_ID)
    REFERENCES PPLN_ORDR_DISP(PPLN_ORDR_DISP_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (PPLN_STG_ID)
    REFERENCES PPLN_STG(PPLN_STG_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (SPPLY_CHN_FRMWRK_ID)
    REFERENCES SPPLY_CHN_FRMWRK(SPPLY_CHN_FRMWRK_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (CRRNCY_ID)
    REFERENCES CRRNCY(CRRNCY_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (INCOTERM_ID)
    REFERENCES INCOTERM(INCOTERM_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (PO_FC_ID)
    REFERENCES PO_FC(PO_FC_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (SO_FC_ID)
    REFERENCES SO_FC(SO_FC_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (SPPLR_ID)
    REFERENCES SPPLR(SPPLR_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (CNTRY_PRGRM_ID)
    REFERENCES CNTRY_PRGRM(CNTRY_PRGRM_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (DONR_OFFC_ID)
    REFERENCES DONR_OFFC(DONR_OFFC_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (INVC_SNT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (GDS_RCVD_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (PMT_TRMS_TYP_ID)
    REFERENCES PMT_TRMS_TYP(PMT_TRMS_TYP_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (WT_UOM_ID)
    REFERENCES WT_UOM(WT_UOM_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (VOL_UOM_ID)
    REFERENCES VOL_UOM(VOL_UOM_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (HLTH_ELMNT_ID)
    REFERENCES HLTH_ELMNT(HLTH_ELMNT_ID)
;

ALTER TABLE GRN_FC ADD 
    FOREIGN KEY (FNDNG_SRC_ID)
    REFERENCES FNDNG_SRC(FNDNG_SRC_ID)
;


-- 
-- TABLE: GRN_HDR_EXPNS_FC 
--

ALTER TABLE GRN_HDR_EXPNS_FC ADD 
    FOREIGN KEY (GRN_FC_ID)
    REFERENCES GRN_FC(GRN_FC_ID)
;

ALTER TABLE GRN_HDR_EXPNS_FC ADD 
    FOREIGN KEY (GRN_HDR_EXPNS_TYP_ID)
    REFERENCES GRN_HDR_EXPNS_TYP(GRN_HDR_EXPNS_TYP_ID)
;


-- 
-- TABLE: GRN_KIC_FC 
--

ALTER TABLE GRN_KIC_FC ADD 
    FOREIGN KEY (GRN_KEY_INFO_TYP_ID)
    REFERENCES GRN_KEY_INFO_TYP(GRN_KEY_INFO_TYP_ID)
;

ALTER TABLE GRN_KIC_FC ADD 
    FOREIGN KEY (GRN_KIC_RSN_ID)
    REFERENCES GRN_KIC_RSN(GRN_KIC_RSN_ID)
;

ALTER TABLE GRN_KIC_FC ADD 
    FOREIGN KEY (SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE GRN_KIC_FC ADD 
    FOREIGN KEY (GRN_FC_ID)
    REFERENCES GRN_FC(GRN_FC_ID)
;


-- 
-- TABLE: GRN_LIN_FC 
--

ALTER TABLE GRN_LIN_FC ADD 
    FOREIGN KEY (GRN_FC_ID)
    REFERENCES GRN_FC(GRN_FC_ID)
;

ALTER TABLE GRN_LIN_FC ADD 
    FOREIGN KEY (TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;

ALTER TABLE GRN_LIN_FC ADD 
    FOREIGN KEY (MFR_ID)
    REFERENCES MFR(MFR_ID)
;

ALTER TABLE GRN_LIN_FC ADD 
    FOREIGN KEY (QTY_UOM_ID)
    REFERENCES QTY_UOM(QTY_UOM_ID)
;

ALTER TABLE GRN_LIN_FC ADD 
    FOREIGN KEY (GRN_LIN_STAT_ID)
    REFERENCES GRN_LIN_STAT(GRN_LIN_STAT_ID)
;

ALTER TABLE GRN_LIN_FC ADD 
    FOREIGN KEY (GRN_LIN_STAT_RSN_ID)
    REFERENCES GRN_LIN_STAT_RSN(GRN_LIN_STAT_RSN_ID)
;

ALTER TABLE GRN_LIN_FC ADD 
    FOREIGN KEY (PO_LIN_FC_ID)
    REFERENCES PO_LIN_FC(PO_LIN_FC_ID)
;

ALTER TABLE GRN_LIN_FC ADD 
    FOREIGN KEY (SO_LIN_FC_ID)
    REFERENCES SO_LIN_FC(SO_LIN_FC_ID)
;

ALTER TABLE GRN_LIN_FC ADD 
    FOREIGN KEY (GDS_RCVD_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE GRN_LIN_FC ADD 
    FOREIGN KEY (MFR_PRDCT_LOT_ID)
    REFERENCES MFR_PRDCT_LOT(MFR_PRDCT_LOT_ID)
;

ALTER TABLE GRN_LIN_FC ADD 
    FOREIGN KEY (WT_UOM_ID)
    REFERENCES WT_UOM(WT_UOM_ID)
;

ALTER TABLE GRN_LIN_FC ADD 
    FOREIGN KEY (VOL_UOM_ID)
    REFERENCES VOL_UOM(VOL_UOM_ID)
;

ALTER TABLE GRN_LIN_FC ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;

ALTER TABLE GRN_LIN_FC ADD 
    FOREIGN KEY (SRC_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE GRN_LIN_FC ADD 
    FOREIGN KEY (DSTNTN_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE GRN_LIN_FC ADD 
    FOREIGN KEY (SHPPNG_MTHD_ID)
    REFERENCES SHPPNG_MTHD(SHPPNG_MTHD_ID)
;


-- 
-- TABLE: GRN_MLSTN_FC 
--

ALTER TABLE GRN_MLSTN_FC ADD 
    FOREIGN KEY (GRN_MLSTN_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE GRN_MLSTN_FC ADD 
    FOREIGN KEY (GRN_FC_ID)
    REFERENCES GRN_FC(GRN_FC_ID)
;

ALTER TABLE GRN_MLSTN_FC ADD 
    FOREIGN KEY (GRN_MLSTN_TYP_ID)
    REFERENCES GRN_MLSTN_TYP(GRN_MLSTN_TYP_ID)
;

ALTER TABLE GRN_MLSTN_FC ADD 
    FOREIGN KEY (GRN_MLSTN_RSN_ID)
    REFERENCES GRN_MLSTN_RSN(GRN_MLSTN_RSN_ID)
;

ALTER TABLE GRN_MLSTN_FC ADD 
    FOREIGN KEY (GRN_LIN_FC_ID)
    REFERENCES GRN_LIN_FC(GRN_LIN_FC_ID)
;


-- 
-- TABLE: HANDLINGINSTRUCTION 
--

ALTER TABLE HANDLINGINSTRUCTION ADD 
    FOREIGN KEY (TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;


-- 
-- TABLE: HAZARDOUSINFORMATIONDETAIL 
--

ALTER TABLE HAZARDOUSINFORMATIONDETAIL ADD 
    FOREIGN KEY (HAZARDOUSINFORMATIONHEADER_ID)
    REFERENCES HAZARDOUSINFORMATIONHEADER(HAZARDOUSINFORMATIONHEADER_ID)
;


-- 
-- TABLE: HAZARDOUSINFORMATIONHEADER 
--

ALTER TABLE HAZARDOUSINFORMATIONHEADER ADD 
    FOREIGN KEY (TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;


-- 
-- TABLE: IMPLMNTNG_PRTNR_EXPCTD_DATA_SBMSSN 
--

ALTER TABLE IMPLMNTNG_PRTNR_EXPCTD_DATA_SBMSSN ADD 
    FOREIGN KEY (IMPLMNTNG_PRTNR_ID)
    REFERENCES IMPLMNTNG_PRTNR(IMPLMNTNG_PRTNR_ID)
;

ALTER TABLE IMPLMNTNG_PRTNR_EXPCTD_DATA_SBMSSN ADD 
    FOREIGN KEY (PRDCTY_ID)
    REFERENCES PRDCTY(PRDCTY_ID)
;


-- 
-- TABLE: INTNDD_RLF_TYP 
--

ALTER TABLE INTNDD_RLF_TYP ADD 
    FOREIGN KEY (INTNDD_RLF_GRP_ID)
    REFERENCES INTNDD_RLF_GRP(INTNDD_RLF_GRP_ID)
;


-- 
-- TABLE: INV_MGMT_RPRT_DTL_LN_FC 
--

ALTER TABLE INV_MGMT_RPRT_DTL_LN_FC ADD 
    FOREIGN KEY (WT_UOM_ID)
    REFERENCES WT_UOM(WT_UOM_ID)
;

ALTER TABLE INV_MGMT_RPRT_DTL_LN_FC ADD 
    FOREIGN KEY (VOL_UOM_ID)
    REFERENCES VOL_UOM(VOL_UOM_ID)
;

ALTER TABLE INV_MGMT_RPRT_DTL_LN_FC ADD 
    FOREIGN KEY (INV_MGMT_RPRT_HDR_FC_ID)
    REFERENCES INV_MGMT_RPRT_HDR_FC(INV_MGMT_RPRT_HDR_FC_ID)
;

ALTER TABLE INV_MGMT_RPRT_DTL_LN_FC ADD 
    FOREIGN KEY (TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;

ALTER TABLE INV_MGMT_RPRT_DTL_LN_FC ADD 
    FOREIGN KEY (INV_MGMT_RPRT_DTL_LN_TYP_ID)
    REFERENCES INV_MGMT_RPRT_DTL_LN_TYP(INV_MGMT_RPRT_DTL_LN_TYP_ID)
;

ALTER TABLE INV_MGMT_RPRT_DTL_LN_FC ADD 
    FOREIGN KEY (INV_AVLBLTY_STAT_ID)
    REFERENCES INV_AVLBLTY_STAT(INV_AVLBLTY_STAT_ID)
;

ALTER TABLE INV_MGMT_RPRT_DTL_LN_FC ADD 
    FOREIGN KEY (QTY_UOM_ID)
    REFERENCES QTY_UOM(QTY_UOM_ID)
;

ALTER TABLE INV_MGMT_RPRT_DTL_LN_FC ADD 
    FOREIGN KEY (MFR_PRDCT_LOT_ID)
    REFERENCES MFR_PRDCT_LOT(MFR_PRDCT_LOT_ID)
;

ALTER TABLE INV_MGMT_RPRT_DTL_LN_FC ADD 
    FOREIGN KEY (SRC_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE INV_MGMT_RPRT_DTL_LN_FC ADD 
    FOREIGN KEY (DSTNTN_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE INV_MGMT_RPRT_DTL_LN_FC ADD 
    FOREIGN KEY (NEXT_SHPMNT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE INV_MGMT_RPRT_DTL_LN_FC ADD 
    FOREIGN KEY (PRCRNG_AGNCY_ID)
    REFERENCES PRCRNG_AGNCY(PRCRNG_AGNCY_ID)
;

ALTER TABLE INV_MGMT_RPRT_DTL_LN_FC ADD 
    FOREIGN KEY (DT_STCK_RPT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE INV_MGMT_RPRT_DTL_LN_FC ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;

ALTER TABLE INV_MGMT_RPRT_DTL_LN_FC ADD 
    FOREIGN KEY (SPPLY_CHN_LVL_ID)
    REFERENCES SPPLY_CHN_LVL(SPPLY_CHN_LVL_ID)
;

ALTER TABLE INV_MGMT_RPRT_DTL_LN_FC ADD 
    FOREIGN KEY (TRANS_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE INV_MGMT_RPRT_DTL_LN_FC ADD 
    FOREIGN KEY (MFG_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE INV_MGMT_RPRT_DTL_LN_FC ADD 
    FOREIGN KEY (EXPIRY_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE INV_MGMT_RPRT_DTL_LN_FC ADD 
    FOREIGN KEY (INV_MGMT_RPRT_DTL_RECORD_SRC_ID)
    REFERENCES INV_MGMT_RPRT_DTL_RECORD_SRC(INV_MGMT_RPRT_DTL_RECORD_SRC_ID)
;


-- 
-- TABLE: INV_MGMT_RPRT_HDR_FC 
--

ALTER TABLE INV_MGMT_RPRT_HDR_FC ADD 
    FOREIGN KEY (INV_MGMT_RPRT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE INV_MGMT_RPRT_HDR_FC ADD 
    FOREIGN KEY (INV_MGMT_RPRT_STAT_ID)
    REFERENCES INV_MGMT_RPRT_STAT(INV_MGMT_RPRT_STAT_ID)
;

ALTER TABLE INV_MGMT_RPRT_HDR_FC ADD 
    FOREIGN KEY (LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE INV_MGMT_RPRT_HDR_FC ADD 
    FOREIGN KEY (HLTH_ELMNT_ID)
    REFERENCES HLTH_ELMNT(HLTH_ELMNT_ID)
;

ALTER TABLE INV_MGMT_RPRT_HDR_FC ADD 
    FOREIGN KEY (CNTRY_PRGRM_ID)
    REFERENCES CNTRY_PRGRM(CNTRY_PRGRM_ID)
;


-- 
-- TABLE: LAB_EQPMNT_PRDCT_TYP 
--

ALTER TABLE LAB_EQPMNT_PRDCT_TYP ADD 
    FOREIGN KEY (MFR_ID)
    REFERENCES MFR(MFR_ID)
;


-- 
-- TABLE: LANGUAGESPECIFICBRANDNAME 
--

ALTER TABLE LANGUAGESPECIFICBRANDNAME ADD 
    FOREIGN KEY (TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;


-- 
-- TABLE: LGSTCS_LCTN 
--

ALTER TABLE LGSTCS_LCTN ADD 
    FOREIGN KEY (LGSTCS_LCTN_TYP_ID)
    REFERENCES LGSTCS_LCTN_TYP(LGSTCS_LCTN_TYP_ID)
;

ALTER TABLE LGSTCS_LCTN ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE LGSTCS_LCTN ADD 
    FOREIGN KEY (LGSTCS_LCTN_OWNR_ID)
    REFERENCES LGSTCS_LCTN_OWNR(LGSTCS_LCTN_OWNR_ID)
;

ALTER TABLE LGSTCS_LCTN ADD 
    FOREIGN KEY (MOST_RECENT_GEOCODE_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE LGSTCS_LCTN ADD 
    FOREIGN KEY (ADMNSTRTV_GGRPHY_LVL_4_ID)
    REFERENCES ADMNSTRTV_GGRPHY_LVL_4(ADMNSTRTV_GGRPHY_LVL_4_ID)
;


-- 
-- TABLE: LGSTCS_LCTN_OWNR 
--

ALTER TABLE LGSTCS_LCTN_OWNR ADD 
    FOREIGN KEY (LGSTCS_LCTN_OWNR_TYP_ID)
    REFERENCES LGSTCS_LCTN_OWNR_TYP(LGSTCS_LCTN_OWNR_TYP_ID)
;

ALTER TABLE LGSTCS_LCTN_OWNR ADD 
    FOREIGN KEY (LGSTCS_LCTN_OWNR_ORG_ID)
    REFERENCES QA_LBRTRY(QA_LBRTRY_ID)
;

ALTER TABLE LGSTCS_LCTN_OWNR ADD 
    FOREIGN KEY (LGSTCS_LCTN_OWNR_ORG_ID)
    REFERENCES QA_LBRTRY_CNTRLLNG_ENTTY(QA_LBRTRY_CNTRLLNG_ENTTY_ID)
;

ALTER TABLE LGSTCS_LCTN_OWNR ADD 
    FOREIGN KEY (LGSTCS_LCTN_OWNR_ORG_ID)
    REFERENCES FRT_FWDR(FRT_FWDR_ID)
;

ALTER TABLE LGSTCS_LCTN_OWNR ADD 
    FOREIGN KEY (LGSTCS_LCTN_OWNR_ORG_ID)
    REFERENCES MFR(MFR_ID)
;

ALTER TABLE LGSTCS_LCTN_OWNR ADD 
    FOREIGN KEY (LGSTCS_LCTN_OWNR_ORG_ID)
    REFERENCES MFR_ST(MFR_ST_ID)
;

ALTER TABLE LGSTCS_LCTN_OWNR ADD 
    FOREIGN KEY (LGSTCS_LCTN_OWNR_ORG_ID)
    REFERENCES SPPLR(SPPLR_ID)
;

ALTER TABLE LGSTCS_LCTN_OWNR ADD 
    FOREIGN KEY (LGSTCS_LCTN_OWNR_ORG_ID)
    REFERENCES EXTRNL_DONR(EXTRNL_DONR_ID)
;

ALTER TABLE LGSTCS_LCTN_OWNR ADD 
    FOREIGN KEY (LGSTCS_LCTN_OWNR_ORG_ID)
    REFERENCES DONR_AGNCY(DONR_AGNCY_ID)
;

ALTER TABLE LGSTCS_LCTN_OWNR ADD 
    FOREIGN KEY (LGSTCS_LCTN_OWNR_ORG_ID)
    REFERENCES DONR_OFFC(DONR_OFFC_ID)
;

ALTER TABLE LGSTCS_LCTN_OWNR ADD 
    FOREIGN KEY (LGSTCS_LCTN_OWNR_ORG_ID)
    REFERENCES PRGRM_ORG(PRGRM_ORG_ID)
;

ALTER TABLE LGSTCS_LCTN_OWNR ADD 
    FOREIGN KEY (LGSTCS_LCTN_OWNR_ORG_ID)
    REFERENCES IMPLMNTNG_PRTNR(IMPLMNTNG_PRTNR_ID)
;

ALTER TABLE LGSTCS_LCTN_OWNR ADD 
    FOREIGN KEY (LGSTCS_LCTN_OWNR_ORG_ID)
    REFERENCES CNSGNE(CNSGNE_ID)
;

ALTER TABLE LGSTCS_LCTN_OWNR ADD 
    FOREIGN KEY (LGSTCS_LCTN_OWNR_ORG_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE LGSTCS_LCTN_OWNR ADD 
    FOREIGN KEY (LGSTCS_LCTN_OWNR_ORG_ID)
    REFERENCES SVC_DLVRY_PNT(SVC_DLVRY_PNT_ID)
;

ALTER TABLE LGSTCS_LCTN_OWNR ADD 
    FOREIGN KEY (LGSTCS_LCTN_OWNR_ORG_ID)
    REFERENCES DMS(DMS_ID)
;


-- 
-- TABLE: LGSTCS_VSSL 
--

ALTER TABLE LGSTCS_VSSL ADD 
    FOREIGN KEY (LGSTCS_VSSL_OWNR_ID)
    REFERENCES LGSTCS_VSSL_OWNR(LGSTCS_VSSL_OWNR_ID)
;


-- 
-- TABLE: MEASUREMENT_AND_EVALUATION_MSR 
--

ALTER TABLE MEASUREMENT_AND_EVALUATION_MSR ADD 
    FOREIGN KEY (MEASUREMENT_AND_EVALUATION_MSR_TYP_ID)
    REFERENCES MEASUREMENT_AND_EVALUATION_MSR_TYP(MEASUREMENT_AND_EVALUATION_MSR_TYP_ID)
;

ALTER TABLE MEASUREMENT_AND_EVALUATION_MSR ADD 
    FOREIGN KEY (MEASUREMENT_AND_EVALUATION_OBJCTV_ID)
    REFERENCES MEASUREMENT_AND_EVALUATION_OBJCTV(MEASUREMENT_AND_EVALUATION_OBJCTV_ID)
;


-- 
-- TABLE: MEASUREMENT_AND_EVALUATION_RPRT_FC 
--

ALTER TABLE MEASUREMENT_AND_EVALUATION_RPRT_FC ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE MEASUREMENT_AND_EVALUATION_RPRT_FC ADD 
    FOREIGN KEY (IMPLMNTNG_PRTNR_ID)
    REFERENCES IMPLMNTNG_PRTNR(IMPLMNTNG_PRTNR_ID)
;

ALTER TABLE MEASUREMENT_AND_EVALUATION_RPRT_FC ADD 
    FOREIGN KEY (HLTH_ELMNT_ID)
    REFERENCES HLTH_ELMNT(HLTH_ELMNT_ID)
;

ALTER TABLE MEASUREMENT_AND_EVALUATION_RPRT_FC ADD 
    FOREIGN KEY (SPPLR_ID)
    REFERENCES SPPLR(SPPLR_ID)
;

ALTER TABLE MEASUREMENT_AND_EVALUATION_RPRT_FC ADD 
    FOREIGN KEY (RPRT_SBMSSN_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE MEASUREMENT_AND_EVALUATION_RPRT_FC ADD 
    FOREIGN KEY (RPRT_QTR_SRD_QTR_ID)
    REFERENCES SRD_QTR(SRD_QTR_ID)
;


-- 
-- TABLE: MEASUREMENT_AND_EVALUATION_RPRT_ITM_FC 
--

ALTER TABLE MEASUREMENT_AND_EVALUATION_RPRT_ITM_FC ADD 
    FOREIGN KEY (MEASUREMENT_AND_EVALUATION_TGT_ID)
    REFERENCES MEASUREMENT_AND_EVALUATION_TGT(MEASUREMENT_AND_EVALUATION_TGT_ID)
;

ALTER TABLE MEASUREMENT_AND_EVALUATION_RPRT_ITM_FC ADD 
    FOREIGN KEY (MEASUREMENT_AND_EVALUATION_RPRT_FC_ID)
    REFERENCES MEASUREMENT_AND_EVALUATION_RPRT_FC(MEASUREMENT_AND_EVALUATION_RPRT_FC_ID)
;


-- 
-- TABLE: MEASUREMENT_AND_EVALUATION_TGT 
--

ALTER TABLE MEASUREMENT_AND_EVALUATION_TGT ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE MEASUREMENT_AND_EVALUATION_TGT ADD 
    FOREIGN KEY (IMPLMNTNG_PRTNR_ID)
    REFERENCES IMPLMNTNG_PRTNR(IMPLMNTNG_PRTNR_ID)
;

ALTER TABLE MEASUREMENT_AND_EVALUATION_TGT ADD 
    FOREIGN KEY (HLTH_ELMNT_ID)
    REFERENCES HLTH_ELMNT(HLTH_ELMNT_ID)
;

ALTER TABLE MEASUREMENT_AND_EVALUATION_TGT ADD 
    FOREIGN KEY (SPPLR_ID)
    REFERENCES SPPLR(SPPLR_ID)
;

ALTER TABLE MEASUREMENT_AND_EVALUATION_TGT ADD 
    FOREIGN KEY (MEASUREMENT_AND_EVALUATION_MSR_ID)
    REFERENCES MEASUREMENT_AND_EVALUATION_MSR(MEASUREMENT_AND_EVALUATION_MSR_ID)
;

ALTER TABLE MEASUREMENT_AND_EVALUATION_TGT ADD 
    FOREIGN KEY (OBJCTV_VLD_TO_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE MEASUREMENT_AND_EVALUATION_TGT ADD 
    FOREIGN KEY (OBJCTV_VLD_FROM_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE MEASUREMENT_AND_EVALUATION_TGT ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;


-- 
-- TABLE: MFR_PRDCT_LOT 
--

ALTER TABLE MFR_PRDCT_LOT ADD 
    FOREIGN KEY (TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;

ALTER TABLE MFR_PRDCT_LOT ADD 
    FOREIGN KEY (MFR_ID)
    REFERENCES MFR(MFR_ID)
;

ALTER TABLE MFR_PRDCT_LOT ADD 
    FOREIGN KEY (MFG_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE MFR_PRDCT_LOT ADD 
    FOREIGN KEY (EXP_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;


-- 
-- TABLE: MFR_ST 
--

ALTER TABLE MFR_ST ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE MFR_ST ADD 
    FOREIGN KEY (MFR_ID)
    REFERENCES MFR(MFR_ID)
;


-- 
-- TABLE: NONFOODINGREDIENT 
--

ALTER TABLE NONFOODINGREDIENT ADD 
    FOREIGN KEY (TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;



-- 
-- TABLE: NTNL_PRDCT_ACTN_RQST_FC 
--

ALTER TABLE NTNL_PRDCT_ACTN_RQST_FC ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;

ALTER TABLE NTNL_PRDCT_ACTN_RQST_FC ADD 
    FOREIGN KEY (CNTRY_PRGRM_ID)
    REFERENCES CNTRY_PRGRM(CNTRY_PRGRM_ID)
;

ALTER TABLE NTNL_PRDCT_ACTN_RQST_FC ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE NTNL_PRDCT_ACTN_RQST_FC ADD 
    FOREIGN KEY (NTNL_PRDCT_ACTN_RQST_SBMSSN_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE NTNL_PRDCT_ACTN_RQST_FC ADD 
    FOREIGN KEY (NTNL_PRDCT_ACTN_RQST_CLOSE_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE NTNL_PRDCT_ACTN_RQST_FC ADD 
    FOREIGN KEY (NTNL_PRDCT_ACTN_RQST_TYP_ID)
    REFERENCES NTNL_PRDCT_ACTN_RQST_TYP(NTNL_PRDCT_ACTN_RQST_TYP_ID)
;

ALTER TABLE NTNL_PRDCT_ACTN_RQST_FC ADD 
    FOREIGN KEY (NTNL_PRDCT_ACTN_RQST_STAT_TYP_ID)
    REFERENCES NTNL_PRDCT_ACTN_RQST_STAT_TYP(NTNL_PRDCT_ACTN_RQST_STAT_TYP_ID)
;

ALTER TABLE NTNL_PRDCT_ACTN_RQST_FC ADD 
    FOREIGN KEY (NTNL_PRDCT_ACTN_RQST_APPRVL_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE NTNL_PRDCT_ACTN_RQST_FC ADD 
    FOREIGN KEY (REQUESTING_BI_USER_ID)
    REFERENCES BI_USER(BI_USER_ID)
;


-- 
-- TABLE: NTNL_PRDCT_ACTN_RQST_UPDT_FC 
--

ALTER TABLE NTNL_PRDCT_ACTN_RQST_UPDT_FC ADD 
    FOREIGN KEY (NTNL_PRDCT_ACTN_RQST_FC_ID)
    REFERENCES NTNL_PRDCT_ACTN_RQST_FC(NTNL_PRDCT_ACTN_RQST_FC_ID)
;

ALTER TABLE NTNL_PRDCT_ACTN_RQST_UPDT_FC ADD 
    FOREIGN KEY (NTNL_PRDCT_ACTN_RQST_UPDT_TYP_ID)
    REFERENCES NTNL_PRDCT_ACTN_RQST_UPDT_TYP(NTNL_PRDCT_ACTN_RQST_UPDT_TYP_ID)
;

ALTER TABLE NTNL_PRDCT_ACTN_RQST_UPDT_FC ADD 
    FOREIGN KEY (NTNL_PRDCT_ACTN_RQST_UPDT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE NTNL_PRDCT_ACTN_RQST_UPDT_FC ADD 
    FOREIGN KEY (UPDATING_BI_USER_ID)
    REFERENCES BI_USER(BI_USER_ID)
;


-- 
-- TABLE: NTNL_PRDCT_CNSMPTN_FC 
--

ALTER TABLE NTNL_PRDCT_CNSMPTN_FC ADD 
    FOREIGN KEY (CNTRY_PRGRM_ID)
    REFERENCES CNTRY_PRGRM(CNTRY_PRGRM_ID)
;

ALTER TABLE NTNL_PRDCT_CNSMPTN_FC ADD 
    FOREIGN KEY (FC_ROW_TYP_ID)
    REFERENCES FC_ROW_TYP(FC_ROW_TYP_ID)
;

ALTER TABLE NTNL_PRDCT_CNSMPTN_FC ADD 
    FOREIGN KEY (SPPLY_CHN_LVL_ID)
    REFERENCES SPPLY_CHN_LVL(SPPLY_CHN_LVL_ID)
;

ALTER TABLE NTNL_PRDCT_CNSMPTN_FC ADD 
    FOREIGN KEY (LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE NTNL_PRDCT_CNSMPTN_FC ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;

ALTER TABLE NTNL_PRDCT_CNSMPTN_FC ADD 
    FOREIGN KEY (CNSMPTN_RPRT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE NTNL_PRDCT_CNSMPTN_FC ADD 
    FOREIGN KEY (PRDCT_CNSMPTN_ALLCTN_MTH_SRC_MTH_ID)
    REFERENCES SRD_MTH(SRD_MTH_ID)
;

ALTER TABLE NTNL_PRDCT_CNSMPTN_FC ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE NTNL_PRDCT_CNSMPTN_FC ADD 
    FOREIGN KEY (PRDCT_CNSMPTN_TYP_ID)
    REFERENCES PRDCT_CNSMPTN_TYP(PRDCT_CNSMPTN_TYP_ID)
;

ALTER TABLE NTNL_PRDCT_CNSMPTN_FC ADD 
    FOREIGN KEY (PRDCT_SUBCAT_LVL_2_ID)
    REFERENCES PRDCT_SUBCAT_LVL_2(PRDCT_SUBCAT_LVL_2_ID)
;


-- 
-- TABLE: NTNL_PRDCT_DMND_PLN_FC 
--

ALTER TABLE NTNL_PRDCT_DMND_PLN_FC ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE NTNL_PRDCT_DMND_PLN_FC ADD 
    FOREIGN KEY (CNTRY_PRGRM_ID)
    REFERENCES CNTRY_PRGRM(CNTRY_PRGRM_ID)
;

ALTER TABLE NTNL_PRDCT_DMND_PLN_FC ADD 
    FOREIGN KEY (FC_ROW_TYP_ID)
    REFERENCES FC_ROW_TYP(FC_ROW_TYP_ID)
;

ALTER TABLE NTNL_PRDCT_DMND_PLN_FC ADD 
    FOREIGN KEY (SPPLY_CHN_LVL_ID)
    REFERENCES SPPLY_CHN_LVL(SPPLY_CHN_LVL_ID)
;

ALTER TABLE NTNL_PRDCT_DMND_PLN_FC ADD 
    FOREIGN KEY (LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE NTNL_PRDCT_DMND_PLN_FC ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;

ALTER TABLE NTNL_PRDCT_DMND_PLN_FC ADD 
    FOREIGN KEY (SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE NTNL_PRDCT_DMND_PLN_FC ADD 
    FOREIGN KEY (PRDCT_DMND_ALLCTN_MTH_SRD_MTH_ID)
    REFERENCES SRD_MTH(SRD_MTH_ID)
;

ALTER TABLE NTNL_PRDCT_DMND_PLN_FC ADD 
    FOREIGN KEY (PRDCT_SUBCAT_LVL_2_ID)
    REFERENCES PRDCT_SUBCAT_LVL_2(PRDCT_SUBCAT_LVL_2_ID)
;


-- 
-- TABLE: NTNL_RCT_FCAST_FC 
--

ALTER TABLE NTNL_RCT_FCAST_FC ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE NTNL_RCT_FCAST_FC ADD 
    FOREIGN KEY (CNTRY_PRGRM_ID)
    REFERENCES CNTRY_PRGRM(CNTRY_PRGRM_ID)
;

ALTER TABLE NTNL_RCT_FCAST_FC ADD 
    FOREIGN KEY (FC_ROW_TYP_ID)
    REFERENCES FC_ROW_TYP(FC_ROW_TYP_ID)
;

ALTER TABLE NTNL_RCT_FCAST_FC ADD 
    FOREIGN KEY (SPPLY_CHN_LVL_ID)
    REFERENCES SPPLY_CHN_LVL(SPPLY_CHN_LVL_ID)
;

ALTER TABLE NTNL_RCT_FCAST_FC ADD 
    FOREIGN KEY (LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE NTNL_RCT_FCAST_FC ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;

ALTER TABLE NTNL_RCT_FCAST_FC ADD 
    FOREIGN KEY (FCAST_SBMSSN_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE NTNL_RCT_FCAST_FC ADD 
    FOREIGN KEY (FCAST_BEGIN_SRD_MTH_ID)
    REFERENCES SRD_MTH(SRD_MTH_ID)
;

ALTER TABLE NTNL_RCT_FCAST_FC ADD 
    FOREIGN KEY (PRDCT_SUBCAT_LVL_2_ID)
    REFERENCES PRDCT_SUBCAT_LVL_2(PRDCT_SUBCAT_LVL_2_ID)
;

ALTER TABLE NTNL_RCT_FCAST_FC ADD 
    FOREIGN KEY (RPRT_PRD_TYP_ID)
    REFERENCES RPRT_PRD_TYP(RPRT_PRD_TYP_ID)
;

ALTER TABLE NTNL_RCT_FCAST_FC ADD 
    FOREIGN KEY (FCAST_END_SRD_MTH_ID)
    REFERENCES SRD_MTH(SRD_MTH_ID)
;


-- 
-- TABLE: NTNL_SP_FC 
--

ALTER TABLE NTNL_SP_FC ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE NTNL_SP_FC ADD 
    FOREIGN KEY (CNTRY_PRGRM_ID)
    REFERENCES CNTRY_PRGRM(CNTRY_PRGRM_ID)
;

ALTER TABLE NTNL_SP_FC ADD 
    FOREIGN KEY (FC_ROW_TYP_ID)
    REFERENCES FC_ROW_TYP(FC_ROW_TYP_ID)
;

ALTER TABLE NTNL_SP_FC ADD 
    FOREIGN KEY (SPPLY_CHN_LVL_ID)
    REFERENCES SPPLY_CHN_LVL(SPPLY_CHN_LVL_ID)
;

ALTER TABLE NTNL_SP_FC ADD 
    FOREIGN KEY (LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE NTNL_SP_FC ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;

ALTER TABLE NTNL_SP_FC ADD 
    FOREIGN KEY (PRDCT_SUBCAT_LVL_2_ID)
    REFERENCES PRDCT_SUBCAT_LVL_2(PRDCT_SUBCAT_LVL_2_ID)
;

ALTER TABLE NTNL_SP_FC ADD 
    FOREIGN KEY (SP_SBMSSN_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE NTNL_SP_FC ADD 
    FOREIGN KEY (RCT_DSRD_BY_SRD_MTH_ID)
    REFERENCES SRD_MTH(SRD_MTH_ID)
;

ALTER TABLE NTNL_SP_FC ADD 
    FOREIGN KEY (PRCRNG_AGNCY_ID)
    REFERENCES PRCRNG_AGNCY(PRCRNG_AGNCY_ID)
;

ALTER TABLE NTNL_SP_FC ADD 
    FOREIGN KEY (FNNCL_RPRT_CHRG_LCTN_ID)
    REFERENCES FNNCL_RPRT_CHRG_LCTN(FNNCL_RPRT_CHRG_LCTN_ID)
;

ALTER TABLE NTNL_SP_FC ADD 
    FOREIGN KEY (SP_CNSTRNT_TYP_ID)
    REFERENCES SP_CNSTRNT_TYP(SP_CNSTRNT_TYP_ID)
;

ALTER TABLE NTNL_SP_FC ADD 
    FOREIGN KEY (CNTRY_PRCRMNT_BUREAU_ID)
    REFERENCES CNTRY_PRCRMNT_BUREAU(CNTRY_PRCRMNT_BUREAU_ID)
;

ALTER TABLE NTNL_SP_FC ADD 
    FOREIGN KEY (SP_STAT_ID)
    REFERENCES SP_STAT(SP_STAT_ID)
;

ALTER TABLE NTNL_SP_FC ADD 
    FOREIGN KEY (CRRNCY_ID)
    REFERENCES CRRNCY(CRRNCY_ID)
;

ALTER TABLE NTNL_SP_FC ADD 
    FOREIGN KEY (DONR_OFFC_ID)
    REFERENCES DONR_OFFC(DONR_OFFC_ID)
;

ALTER TABLE NTNL_SP_FC ADD 
    FOREIGN KEY (AD_HOC_TRANS_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE NTNL_SP_FC ADD 
    FOREIGN KEY (FNDNG_SRC_ID)
    REFERENCES FNDNG_SRC(FNDNG_SRC_ID)
;

ALTER TABLE NTNL_SP_FC ADD 
    FOREIGN KEY (BI_USER_ID)
    REFERENCES BI_USER(BI_USER_ID)
;


-- 
-- TABLE: PO_DLY_FC 
--

ALTER TABLE PO_DLY_FC ADD 
    FOREIGN KEY (PO_FC_ID)
    REFERENCES PO_FC(PO_FC_ID)
;

ALTER TABLE PO_DLY_FC ADD 
    FOREIGN KEY (PO_DLY_RSN_ID)
    REFERENCES PO_DLY_RSN(PO_DLY_RSN_ID)
;

ALTER TABLE PO_DLY_FC ADD 
    FOREIGN KEY (PO_DLY_TYP_ID)
    REFERENCES PO_DLY_TYP(PO_DLY_TYP_ID)
;

ALTER TABLE PO_DLY_FC ADD 
    FOREIGN KEY (DT_DLY_STARTED_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PO_DLY_FC ADD 
    FOREIGN KEY (DT_DLY_CLRD_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;


-- 
-- TABLE: PO_DLY_TYP 
--

ALTER TABLE PO_DLY_TYP ADD 
    FOREIGN KEY (PO_DLY_RSPNSBL_PRTY_ID)
    REFERENCES PO_DLY_RSPNSBL_PRTY(PO_DLY_RSPNSBL_PRTY_ID)
;


-- 
-- TABLE: PO_FC 
--

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (PPLN_STG_ID)
    REFERENCES PPLN_STG(PPLN_STG_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (PPLN_ORDR_DISP_ID)
    REFERENCES PPLN_ORDR_DISP(PPLN_ORDR_DISP_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (PO_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (SPPLR_ID)
    REFERENCES SPPLR(SPPLR_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (TSKORDR_ID)
    REFERENCES TSKORDR(TSKORDR_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (DONR_OFFC_ID)
    REFERENCES DONR_OFFC(DONR_OFFC_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (DSTNTN_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (SRC_INCOTERM_ID)
    REFERENCES INCOTERM(INCOTERM_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (PLND_DLVRY_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (PLND_IN_CNTRY_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (PO_SNT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (PO_RCVD_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (PO_CRTD_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (EXPRT_DOC_RCVD_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (ESTMTD_RDY_FOR_FRT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (PRE_SHPMNT_INSPCTN_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (VNDR_PRMSD_BY_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (PRJCTD_DLVRY_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (SHPPNG_MTHD_ID)
    REFERENCES SHPPNG_MTHD(SHPPNG_MTHD_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (CNTRY_PRGRM_ID)
    REFERENCES CNTRY_PRGRM(CNTRY_PRGRM_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (PQ_FC_ID)
    REFERENCES PQ_FC(PQ_FC_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (PO_DOC_CMPLTN_STAT_ID)
    REFERENCES PO_DOC_CMPLTN_STAT(PO_DOC_CMPLTN_STAT_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (PO_STAT_ID)
    REFERENCES PO_STAT(PO_STAT_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (FRT_FWDR_ID)
    REFERENCES FRT_FWDR(FRT_FWDR_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (SRC_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (CRRNCY_ID)
    REFERENCES CRRNCY(CRRNCY_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (PMT_TRMS_TYP_ID)
    REFERENCES PMT_TRMS_TYP(PMT_TRMS_TYP_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (BLNKT_PO_VLD_TO_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (BLNKT_PO_VLD_FROM_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (PO_TYP_ID)
    REFERENCES PO_TYP(PO_TYP_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (SPPLY_CHN_FRMWRK_ID)
    REFERENCES SPPLY_CHN_FRMWRK(SPPLY_CHN_FRMWRK_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (PO_URGNCY_TYP_ID)
    REFERENCES PO_URGNCY_TYP(PO_URGNCY_TYP_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (HLTH_ELMNT_ID)
    REFERENCES HLTH_ELMNT(HLTH_ELMNT_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (CNSGNE_ID)
    REFERENCES CNSGNE(CNSGNE_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (PRCRNG_AGNCY_ID)
    REFERENCES PRCRNG_AGNCY(PRCRNG_AGNCY_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (DSTNTN_INCOTERM_ID)
    REFERENCES INCOTERM(INCOTERM_ID)
;

ALTER TABLE PO_FC ADD 
    FOREIGN KEY (FNDNG_SRC_ID)
    REFERENCES FNDNG_SRC(FNDNG_SRC_ID)
;


-- 
-- TABLE: PO_HDR_EXPNS_FC 
--

ALTER TABLE PO_HDR_EXPNS_FC ADD 
    FOREIGN KEY (PO_FC_ID)
    REFERENCES PO_FC(PO_FC_ID)
;

ALTER TABLE PO_HDR_EXPNS_FC ADD 
    FOREIGN KEY (PO_HDR_EXPNS_TYP_ID)
    REFERENCES PO_HDR_EXPNS_TYP(PO_HDR_EXPNS_TYP_ID)
;


-- 
-- TABLE: PO_KIC_FC 
--

ALTER TABLE PO_KIC_FC ADD 
    FOREIGN KEY (PO_KEY_INFO_TYP_ID)
    REFERENCES PO_KEY_INFO_TYP(PO_KEY_INFO_TYP_ID)
;

ALTER TABLE PO_KIC_FC ADD 
    FOREIGN KEY (PO_FC_ID)
    REFERENCES PO_FC(PO_FC_ID)
;

ALTER TABLE PO_KIC_FC ADD 
    FOREIGN KEY (PO_KIC_RSN_ID)
    REFERENCES PO_KIC_RSN(PO_KIC_RSN_ID)
;

ALTER TABLE PO_KIC_FC ADD 
    FOREIGN KEY (SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;


-- 
-- TABLE: PO_LIN_FC 
--

ALTER TABLE PO_LIN_FC ADD 
    FOREIGN KEY (PO_FC_ID)
    REFERENCES PO_FC(PO_FC_ID)
;

ALTER TABLE PO_LIN_FC ADD 
    FOREIGN KEY (TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;

ALTER TABLE PO_LIN_FC ADD 
    FOREIGN KEY (MFR_ID)
    REFERENCES MFR(MFR_ID)
;

ALTER TABLE PO_LIN_FC ADD 
    FOREIGN KEY (PQ_LIN_FC_ID)
    REFERENCES PQ_LIN_FC(PQ_LIN_FC_ID)
;

ALTER TABLE PO_LIN_FC ADD 
    FOREIGN KEY (PO_LIN_STAT_ID)
    REFERENCES PO_LIN_STAT(PO_LIN_STAT_ID)
;

ALTER TABLE PO_LIN_FC ADD 
    FOREIGN KEY (PO_LIN_STAT_RSN_ID)
    REFERENCES PO_LIN_STAT_RSN(PO_LIN_STAT_RSN_ID)
;

ALTER TABLE PO_LIN_FC ADD 
    FOREIGN KEY (QTY_UOM_ID)
    REFERENCES QTY_UOM(QTY_UOM_ID)
;

ALTER TABLE PO_LIN_FC ADD 
    FOREIGN KEY (ESTMTD_RDY_FOR_FRT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PO_LIN_FC ADD 
    FOREIGN KEY (PLND_DLVRY_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PO_LIN_FC ADD 
    FOREIGN KEY (PLND_IN_CNTRY_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PO_LIN_FC ADD 
    FOREIGN KEY (PRJCTD_DLVRY_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PO_LIN_FC ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;

ALTER TABLE PO_LIN_FC ADD 
    FOREIGN KEY (SHPPNG_MTHD_ID)
    REFERENCES SHPPNG_MTHD(SHPPNG_MTHD_ID)
;

ALTER TABLE PO_LIN_FC ADD 
    FOREIGN KEY (FRT_FWDR_ID)
    REFERENCES FRT_FWDR(FRT_FWDR_ID)
;

ALTER TABLE PO_LIN_FC ADD 
    FOREIGN KEY (SRC_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE PO_LIN_FC ADD 
    FOREIGN KEY (DSTNTN_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE PO_LIN_FC ADD 
    FOREIGN KEY (SRC_INCOTERM_ID)
    REFERENCES INCOTERM(INCOTERM_ID)
;

ALTER TABLE PO_LIN_FC ADD 
    FOREIGN KEY (DSTNTN_INCOTERM_ID)
    REFERENCES INCOTERM(INCOTERM_ID)
;

ALTER TABLE PO_LIN_FC ADD 
    FOREIGN KEY (FNDNG_SRC_ID)
    REFERENCES FNDNG_SRC(FNDNG_SRC_ID)
;

ALTER TABLE PO_LIN_FC ADD 
    FOREIGN KEY (HLTH_ELMNT_ID)
    REFERENCES HLTH_ELMNT(HLTH_ELMNT_ID)
;

ALTER TABLE PO_LIN_FC ADD 
    FOREIGN KEY (SPPLY_CHN_FRMWRK_ID)
    REFERENCES SPPLY_CHN_FRMWRK(SPPLY_CHN_FRMWRK_ID)
;


-- 
-- TABLE: PO_MLSTN_FC 
--

ALTER TABLE PO_MLSTN_FC ADD 
    FOREIGN KEY (PO_MLSTN_TYP_ID)
    REFERENCES PO_MLSTN_TYP(PO_MLSTN_TYP_ID)
;

ALTER TABLE PO_MLSTN_FC ADD 
    FOREIGN KEY (PO_MLSTN_RSN_ID)
    REFERENCES PO_MLSTN_RSN(PO_MLSTN_RSN_ID)
;

ALTER TABLE PO_MLSTN_FC ADD 
    FOREIGN KEY (PO_MLSTN_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PO_MLSTN_FC ADD 
    FOREIGN KEY (PO_FC_ID)
    REFERENCES PO_FC(PO_FC_ID)
;

ALTER TABLE PO_MLSTN_FC ADD 
    FOREIGN KEY (PO_LIN_FC_ID)
    REFERENCES PO_LIN_FC(PO_LIN_FC_ID)
;


-- 
-- TABLE: PQ_DLY_FC 
--

ALTER TABLE PQ_DLY_FC ADD 
    FOREIGN KEY (PQ_DLY_TYP_ID)
    REFERENCES PQ_DLY_TYP(PQ_DLY_TYP_ID)
;

ALTER TABLE PQ_DLY_FC ADD 
    FOREIGN KEY (PQ_DLY_RSN_ID)
    REFERENCES PQ_DLY_RSN(PQ_DLY_RSN_ID)
;

ALTER TABLE PQ_DLY_FC ADD 
    FOREIGN KEY (PQ_FC_ID)
    REFERENCES PQ_FC(PQ_FC_ID)
;

ALTER TABLE PQ_DLY_FC ADD 
    FOREIGN KEY (DT_DLY_STARTED_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PQ_DLY_FC ADD 
    FOREIGN KEY (DT_DLY_CLRD_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;


-- 
-- TABLE: PQ_DLY_TYP 
--

ALTER TABLE PQ_DLY_TYP ADD 
    FOREIGN KEY (PQ_DLY_RSPNSBL_PRTY_ID)
    REFERENCES PQ_DLY_RSPNSBL_PRTY(PQ_DLY_RSPNSBL_PRTY_ID)
;


-- 
-- TABLE: PQ_FC 
--

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (PQ_SRC_ID)
    REFERENCES PQ_SRC(PQ_SRC_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (CRRNCY_ID)
    REFERENCES CRRNCY(CRRNCY_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (PQ_URGNCY_TYP_ID)
    REFERENCES PQ_URGNCY_TYP(PQ_URGNCY_TYP_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (PQ_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (PQ_ESTMTD_RDY_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (PQ_EXP_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (PQ_SNT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (PQ_RSPNS_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (PQ_FNL_INVC_SNT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (PQ_PRCD_TO_ORDR_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (SPPLR_ID)
    REFERENCES SPPLR(SPPLR_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (PQ_STAT_ID)
    REFERENCES PQ_STAT(PQ_STAT_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (FRT_FWDR_ID)
    REFERENCES FRT_FWDR(FRT_FWDR_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (PQ_DOC_CMPLTN_STAT_ID)
    REFERENCES PQ_DOC_CMPLTN_STAT(PQ_DOC_CMPLTN_STAT_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (INCOTERM_ID)
    REFERENCES INCOTERM(INCOTERM_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (PR_FC_ID)
    REFERENCES PR_FC(PR_FC_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (CNTRY_PRGRM_ID)
    REFERENCES CNTRY_PRGRM(CNTRY_PRGRM_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (PMT_TRMS_TYP_ID)
    REFERENCES PMT_TRMS_TYP(PMT_TRMS_TYP_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (PQ_TYP_ID)
    REFERENCES PQ_TYP(PQ_TYP_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (SHPPNG_MTHD_ID)
    REFERENCES SHPPNG_MTHD(SHPPNG_MTHD_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (DSTNTN_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (SRC_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (DONR_OFFC_ID)
    REFERENCES DONR_OFFC(DONR_OFFC_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (TSKORDR_ID)
    REFERENCES TSKORDR(TSKORDR_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (SPPLY_CHN_FRMWRK_ID)
    REFERENCES SPPLY_CHN_FRMWRK(SPPLY_CHN_FRMWRK_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (PPLN_ORDR_DISP_ID)
    REFERENCES PPLN_ORDR_DISP(PPLN_ORDR_DISP_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (PPLN_STG_ID)
    REFERENCES PPLN_STG(PPLN_STG_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (PQ_RSPNS_ID)
    REFERENCES PQ_RSPNS(PQ_RSPNS_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (HLTH_ELMNT_ID)
    REFERENCES HLTH_ELMNT(HLTH_ELMNT_ID)
;

ALTER TABLE PQ_FC ADD 
    FOREIGN KEY (STKOUT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;


-- 
-- TABLE: PQ_HDR_EXPNS_FC 
--

ALTER TABLE PQ_HDR_EXPNS_FC ADD 
    FOREIGN KEY (PQ_FC_ID)
    REFERENCES PQ_FC(PQ_FC_ID)
;

ALTER TABLE PQ_HDR_EXPNS_FC ADD 
    FOREIGN KEY (PQ_HDR_EXPNS_TYP_ID)
    REFERENCES PQ_HDR_EXPNS_TYP(PQ_HDR_EXPNS_TYP_ID)
;


-- 
-- TABLE: PQ_KIC_FC 
--

ALTER TABLE PQ_KIC_FC ADD 
    FOREIGN KEY (PQ_FC_ID)
    REFERENCES PQ_FC(PQ_FC_ID)
;

ALTER TABLE PQ_KIC_FC ADD 
    FOREIGN KEY (SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PQ_KIC_FC ADD 
    FOREIGN KEY (PQ_KEY_INFO_TYP_ID)
    REFERENCES PQ_KEY_INFO_TYP(PQ_KEY_INFO_TYP_ID)
;

ALTER TABLE PQ_KIC_FC ADD 
    FOREIGN KEY (PQ_KIC_RSN_ID)
    REFERENCES PQ_KIC_RSN(PQ_KIC_RSN_ID)
;


-- 
-- TABLE: PQ_LIN_FC 
--

ALTER TABLE PQ_LIN_FC ADD 
    FOREIGN KEY (TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;

ALTER TABLE PQ_LIN_FC ADD 
    FOREIGN KEY (PR_LIN_FC_ID)
    REFERENCES PR_LIN_FC(PR_LIN_FC_ID)
;

ALTER TABLE PQ_LIN_FC ADD 
    FOREIGN KEY (PQ_FC_ID)
    REFERENCES PQ_FC(PQ_FC_ID)
;

ALTER TABLE PQ_LIN_FC ADD 
    FOREIGN KEY (PQ_LIN_STAT_ID)
    REFERENCES PQ_LIN_STAT(PQ_LIN_STAT_ID)
;

ALTER TABLE PQ_LIN_FC ADD 
    FOREIGN KEY (PQ_LIN_STAT_RSN_ID)
    REFERENCES PQ_LIN_STAT_RSN(PQ_LIN_STAT_RSN_ID)
;

ALTER TABLE PQ_LIN_FC ADD 
    FOREIGN KEY (QTY_UOM_ID)
    REFERENCES QTY_UOM(QTY_UOM_ID)
;

ALTER TABLE PQ_LIN_FC ADD 
    FOREIGN KEY (MFR_ID)
    REFERENCES MFR(MFR_ID)
;

ALTER TABLE PQ_LIN_FC ADD 
    FOREIGN KEY (PQ_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PQ_LIN_FC ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;

ALTER TABLE PQ_LIN_FC ADD 
    FOREIGN KEY (FNDNG_SRC_ID)
    REFERENCES FNDNG_SRC(FNDNG_SRC_ID)
;

ALTER TABLE PQ_LIN_FC ADD 
    FOREIGN KEY (SHPPNG_MTHD_ID)
    REFERENCES SHPPNG_MTHD(SHPPNG_MTHD_ID)
;

ALTER TABLE PQ_LIN_FC ADD 
    FOREIGN KEY (FRT_FWDR_ID)
    REFERENCES FRT_FWDR(FRT_FWDR_ID)
;

ALTER TABLE PQ_LIN_FC ADD 
    FOREIGN KEY (SRC_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE PQ_LIN_FC ADD 
    FOREIGN KEY (DSTNTN_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE PQ_LIN_FC ADD 
    FOREIGN KEY (STKOUT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PQ_LIN_FC ADD 
    FOREIGN KEY (SRC_INCOTERM_ID)
    REFERENCES INCOTERM(INCOTERM_ID)
;

ALTER TABLE PQ_LIN_FC ADD 
    FOREIGN KEY (HLTH_ELMNT_ID)
    REFERENCES HLTH_ELMNT(HLTH_ELMNT_ID)
;

ALTER TABLE PQ_LIN_FC ADD 
    FOREIGN KEY (SPPLY_CHN_FRMWRK_ID)
    REFERENCES SPPLY_CHN_FRMWRK(SPPLY_CHN_FRMWRK_ID)
;

ALTER TABLE PQ_LIN_FC ADD 
    FOREIGN KEY (DSTNTN_INCOTERM_ID)
    REFERENCES INCOTERM(INCOTERM_ID)
;

ALTER TABLE PQ_LIN_FC ADD 
    FOREIGN KEY (SPPLR_ID)
    REFERENCES SPPLR(SPPLR_ID)
;


-- 
-- TABLE: PQ_MLSTN_FC 
--

ALTER TABLE PQ_MLSTN_FC ADD 
    FOREIGN KEY (PQ_FC_ID)
    REFERENCES PQ_FC(PQ_FC_ID)
;

ALTER TABLE PQ_MLSTN_FC ADD 
    FOREIGN KEY (PQ_MLSTN_TYP_ID)
    REFERENCES PQ_MLSTN_TYP(PQ_MLSTN_TYP_ID)
;

ALTER TABLE PQ_MLSTN_FC ADD 
    FOREIGN KEY (PQ_MLSTN_RSN_ID)
    REFERENCES PQ_MLSTN_RSN(PQ_MLSTN_RSN_ID)
;

ALTER TABLE PQ_MLSTN_FC ADD 
    FOREIGN KEY (PQ_MLSTN_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PQ_MLSTN_FC ADD 
    FOREIGN KEY (PQ_LIN_FC_ID)
    REFERENCES PQ_LIN_FC(PQ_LIN_FC_ID)
;


-- 
-- TABLE: PQ_URGNCY_TYP 
--

ALTER TABLE PQ_URGNCY_TYP ADD 
    FOREIGN KEY (EMRGNCY_TYP_ID)
    REFERENCES EMRGNCY_TYP(EMRGNCY_TYP_ID)
;


-- 
-- TABLE: PR_DLY_FC 
--

ALTER TABLE PR_DLY_FC ADD 
    FOREIGN KEY (PR_FC_ID)
    REFERENCES PR_FC(PR_FC_ID)
;

ALTER TABLE PR_DLY_FC ADD 
    FOREIGN KEY (DT_DLY_CLRD_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PR_DLY_FC ADD 
    FOREIGN KEY (DT_DLY_STARTED_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PR_DLY_FC ADD 
    FOREIGN KEY (PR_DLY_RSN_ID)
    REFERENCES PR_DLY_RSN(PR_DLY_RSN_ID)
;

ALTER TABLE PR_DLY_FC ADD 
    FOREIGN KEY (PR_DLY_TYP_ID)
    REFERENCES PR_DLY_TYP(PR_DLY_TYP_ID)
;


-- 
-- TABLE: PR_DLY_TYP 
--

ALTER TABLE PR_DLY_TYP ADD 
    FOREIGN KEY (PR_DLY_RSPNSBL_PRTY_ID)
    REFERENCES PR_DLY_RSPNSBL_PRTY(PR_DLY_RSPNSBL_PRTY_ID)
;


-- 
-- TABLE: PR_FC 
--

ALTER TABLE PR_FC ADD 
    FOREIGN KEY (TSKORDR_ID)
    REFERENCES TSKORDR(TSKORDR_ID)
;

ALTER TABLE PR_FC ADD 
    FOREIGN KEY (LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE PR_FC ADD 
    FOREIGN KEY (PR_DOC_CMPLTN_STAT_ID)
    REFERENCES PR_DOC_CMPLTN_STAT(PR_DOC_CMPLTN_STAT_ID)
;

ALTER TABLE PR_FC ADD 
    FOREIGN KEY (PPLN_STG_ID)
    REFERENCES PPLN_STG(PPLN_STG_ID)
;

ALTER TABLE PR_FC ADD 
    FOREIGN KEY (PPLN_ORDR_DISP_ID)
    REFERENCES PPLN_ORDR_DISP(PPLN_ORDR_DISP_ID)
;

ALTER TABLE PR_FC ADD 
    FOREIGN KEY (SPPLY_CHN_FRMWRK_ID)
    REFERENCES SPPLY_CHN_FRMWRK(SPPLY_CHN_FRMWRK_ID)
;

ALTER TABLE PR_FC ADD 
    FOREIGN KEY (CNTRY_PRGRM_ID)
    REFERENCES CNTRY_PRGRM(CNTRY_PRGRM_ID)
;

ALTER TABLE PR_FC ADD 
    FOREIGN KEY (PR_STAT_ID)
    REFERENCES PR_STAT(PR_STAT_ID)
;

ALTER TABLE PR_FC ADD 
    FOREIGN KEY (PR_URGNCY_TYP_ID)
    REFERENCES PR_URGNCY_TYP(PR_URGNCY_TYP_ID)
;

ALTER TABLE PR_FC ADD 
    FOREIGN KEY (PR_ESTMTD_RDY_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PR_FC ADD 
    FOREIGN KEY (PR_EXP_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PR_FC ADD 
    FOREIGN KEY (PR_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PR_FC ADD 
    FOREIGN KEY (PR_SNT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PR_FC ADD 
    FOREIGN KEY (PR_RSPNS_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PR_FC ADD 
    FOREIGN KEY (DONR_OFFC_ID)
    REFERENCES DONR_OFFC(DONR_OFFC_ID)
;

ALTER TABLE PR_FC ADD 
    FOREIGN KEY (PR_TYP_ID)
    REFERENCES PR_TYP(PR_TYP_ID)
;

ALTER TABLE PR_FC ADD 
    FOREIGN KEY (PRFRRD_INCOTERM_ID)
    REFERENCES INCOTERM(INCOTERM_ID)
;

ALTER TABLE PR_FC ADD 
    FOREIGN KEY (HLTH_ELMNT_ID)
    REFERENCES HLTH_ELMNT(HLTH_ELMNT_ID)
;

ALTER TABLE PR_FC ADD 
    FOREIGN KEY (FNDNG_SRC_ID)
    REFERENCES FNDNG_SRC(FNDNG_SRC_ID)
;


-- 
-- TABLE: PR_KIC_FC 
--

ALTER TABLE PR_KIC_FC ADD 
    FOREIGN KEY (PR_FC_ID)
    REFERENCES PR_FC(PR_FC_ID)
;

ALTER TABLE PR_KIC_FC ADD 
    FOREIGN KEY (SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PR_KIC_FC ADD 
    FOREIGN KEY (PR_KEY_INFO_TYP_ID)
    REFERENCES PR_KEY_INFO_TYP(PR_KEY_INFO_TYP_ID)
;

ALTER TABLE PR_KIC_FC ADD 
    FOREIGN KEY (PR_KIC_RSN_ID)
    REFERENCES PR_KIC_RSN(PR_KIC_RSN_ID)
;


-- 
-- TABLE: PR_LIN_FC 
--

ALTER TABLE PR_LIN_FC ADD 
    FOREIGN KEY (PR_FC_ID)
    REFERENCES PR_FC(PR_FC_ID)
;

ALTER TABLE PR_LIN_FC ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;

ALTER TABLE PR_LIN_FC ADD 
    FOREIGN KEY (QTY_UOM_ID)
    REFERENCES QTY_UOM(QTY_UOM_ID)
;

ALTER TABLE PR_LIN_FC ADD 
    FOREIGN KEY (PR_LIN_STAT_RSN_ID)
    REFERENCES PR_LIN_STAT_RSN(PR_LIN_STAT_RSN_ID)
;

ALTER TABLE PR_LIN_FC ADD 
    FOREIGN KEY (PR_LIN_STAT_ID)
    REFERENCES PR_LIN_STAT(PR_LIN_STAT_ID)
;

ALTER TABLE PR_LIN_FC ADD 
    FOREIGN KEY (TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;

ALTER TABLE PR_LIN_FC ADD 
    FOREIGN KEY (PRDCT_LN_ID)
    REFERENCES PRDCT_LN(PRDCT_LN_ID)
;

ALTER TABLE PR_LIN_FC ADD 
    FOREIGN KEY (PRDCT_SUBCAT_LVL_3_ID)
    REFERENCES PRDCT_SUBCAT_LVL_3(PRDCT_SUBCAT_LVL_3_ID)
;

ALTER TABLE PR_LIN_FC ADD 
    FOREIGN KEY (PRDCT_SUBCAT_LVL_2_ID)
    REFERENCES PRDCT_SUBCAT_LVL_2(PRDCT_SUBCAT_LVL_2_ID)
;

ALTER TABLE PR_LIN_FC ADD 
    FOREIGN KEY (PRDCT_SUBCAT_LVL_1_ID)
    REFERENCES PRDCT_SUBCAT_LVL_1(PRDCT_SUBCAT_LVL_1_ID)
;

ALTER TABLE PR_LIN_FC ADD 
    FOREIGN KEY (PRJCTD_STKOUT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PR_LIN_FC ADD 
    FOREIGN KEY (PRFRRD_SHPPNG_MTHD_ID)
    REFERENCES SHPPNG_MTHD(SHPPNG_MTHD_ID)
;

ALTER TABLE PR_LIN_FC ADD 
    FOREIGN KEY (NTNL_SP_FC_ID)
    REFERENCES NTNL_SP_FC(NTNL_SP_FC_ID)
;

ALTER TABLE PR_LIN_FC ADD 
    FOREIGN KEY (NEW_PR_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PR_LIN_FC ADD 
    FOREIGN KEY (NEW_PR_APPROVED_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PR_LIN_FC ADD 
    FOREIGN KEY (NEW_PR_RJCTD_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PR_LIN_FC ADD 
    FOREIGN KEY (NEW_PRDCT_ADDED_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PR_LIN_FC ADD 
    FOREIGN KEY (FNDNG_SRC_ID)
    REFERENCES FNDNG_SRC(FNDNG_SRC_ID)
;


-- 
-- TABLE: PR_MLSTN_FC 
--

ALTER TABLE PR_MLSTN_FC ADD 
    FOREIGN KEY (PR_MLSTN_TYP_ID)
    REFERENCES PR_MLSTN_TYP(PR_MLSTN_TYP_ID)
;

ALTER TABLE PR_MLSTN_FC ADD 
    FOREIGN KEY (PR_MLSTN_RSN_ID)
    REFERENCES PR_MLSTN_RSN(PR_MLSTN_RSN_ID)
;

ALTER TABLE PR_MLSTN_FC ADD 
    FOREIGN KEY (PR_FC_ID)
    REFERENCES PR_FC(PR_FC_ID)
;

ALTER TABLE PR_MLSTN_FC ADD 
    FOREIGN KEY (PR_MLSTN_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PR_MLSTN_FC ADD 
    FOREIGN KEY (PR_LIN_FC_ID)
    REFERENCES PR_LIN_FC(PR_LIN_FC_ID)
;


-- 
-- TABLE: PR_URGNCY_TYP 
--

ALTER TABLE PR_URGNCY_TYP ADD 
    FOREIGN KEY (EMRGNCY_TYP_ID)
    REFERENCES EMRGNCY_TYP(EMRGNCY_TYP_ID)
;


-- 
-- TABLE: PRCRMNT_FCAST_HDR 
--

ALTER TABLE PRCRMNT_FCAST_HDR ADD 
    FOREIGN KEY (RPRT_PRD_TYP_ID)
    REFERENCES RPRT_PRD_TYP(RPRT_PRD_TYP_ID)
;

ALTER TABLE PRCRMNT_FCAST_HDR ADD 
    FOREIGN KEY (RPRT_EFF_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PRCRMNT_FCAST_HDR ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE PRCRMNT_FCAST_HDR ADD 
    FOREIGN KEY (RPRT_APPRVL_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PRCRMNT_FCAST_HDR ADD 
    FOREIGN KEY (PRCRMNT_FCAST_STAT_ID)
    REFERENCES PRCRMNT_FCAST_STAT(PRCRMNT_FCAST_STAT_ID)
;

ALTER TABLE PRCRMNT_FCAST_HDR ADD 
    FOREIGN KEY (RPRT_SBMTTD_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PRCRMNT_FCAST_HDR ADD 
    FOREIGN KEY (DONR_OFFC_ID)
    REFERENCES DONR_OFFC(DONR_OFFC_ID)
;

ALTER TABLE PRCRMNT_FCAST_HDR ADD 
    FOREIGN KEY (PRCRNG_AGNCY_ID)
    REFERENCES PRCRNG_AGNCY(PRCRNG_AGNCY_ID)
;


-- 
-- TABLE: PRCRMNT_FCAST_ITM 
--

ALTER TABLE PRCRMNT_FCAST_ITM ADD 
    FOREIGN KEY (PRCRMNT_FCAST_HDR_ID)
    REFERENCES PRCRMNT_FCAST_HDR(PRCRMNT_FCAST_HDR_ID)
;

ALTER TABLE PRCRMNT_FCAST_ITM ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;

ALTER TABLE PRCRMNT_FCAST_ITM ADD 
    FOREIGN KEY (PRJCTD_NEXT_SHPMNT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE PRCRMNT_FCAST_ITM ADD 
    FOREIGN KEY (PRCRMNT_FCAST_ITM_RSK_STAT_ID)
    REFERENCES PRCRMNT_FCAST_ITM_RSK_STAT(PRCRMNT_FCAST_ITM_RSK_STAT_ID)
;

ALTER TABLE PRCRMNT_FCAST_ITM ADD 
    FOREIGN KEY (QTY_UOM_ID)
    REFERENCES QTY_UOM(QTY_UOM_ID)
;

ALTER TABLE PRCRMNT_FCAST_ITM ADD 
    FOREIGN KEY (PRCRMNT_FCAST_ITM_URGNCY_TYP_ID)
    REFERENCES PRCRMNT_FCAST_ITM_URGNCY_TYP(PRCRMNT_FCAST_ITM_URGNCY_TYP_ID)
;

ALTER TABLE PRCRMNT_FCAST_ITM ADD 
    FOREIGN KEY (CNTRY_PRGRM_ID)
    REFERENCES CNTRY_PRGRM(CNTRY_PRGRM_ID)
;

ALTER TABLE PRCRMNT_FCAST_ITM ADD 
    FOREIGN KEY (PRCRMNT_FCAST_ITM_VER_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;


-- 
-- TABLE: PRDCT_CLSSFCTN_MASTER_1 
--

ALTER TABLE PRDCT_CLSSFCTN_MASTER_1 ADD 
    FOREIGN KEY (TRADE_ITM_BASE_UOM_ID)
    REFERENCES TRADE_ITM_BASE_UOM(TRADE_ITM_BASE_UOM_ID)
;

ALTER TABLE PRDCT_CLSSFCTN_MASTER_1 ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_4_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_4(USAID_PRDCT_CLSSFCTN_LVL_4_ID)
;


-- 
-- TABLE: PRDCT_CLSSFCTN_TRCR_CMMDTY_INCLSN 
--

ALTER TABLE PRDCT_CLSSFCTN_TRCR_CMMDTY_INCLSN ADD 
    FOREIGN KEY (TRCR_CMMDTY_TYP_ID)
    REFERENCES TRCR_CMMDTY_TYP(TRCR_CMMDTY_TYP_ID)
;

ALTER TABLE PRDCT_CLSSFCTN_TRCR_CMMDTY_INCLSN ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;


-- 
-- TABLE: PRDCT_CRTFCN_TYP 
--

ALTER TABLE PRDCT_CRTFCN_TYP ADD 
    FOREIGN KEY (PRDCT_CRTFCN_ISSUING_AUTHORITY_ID)
    REFERENCES PRDCT_CRTFCN_ISSUING_AUTHORITY(PRDCT_CRTFCN_ISSUING_AUTHORITY_ID)
;


-- 
-- TABLE: PRDCT_HRRCHY 
--

ALTER TABLE PRDCT_HRRCHY ADD 
    FOREIGN KEY (PRDCT_HRRCHY_OWNR_ID)
    REFERENCES PRDCT_HRRCHY_OWNR(PRDCT_HRRCHY_OWNR_ID)
;


-- 
-- TABLE: PRDCT_HRRCHY_INCLSN 
--

ALTER TABLE PRDCT_HRRCHY_INCLSN ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;

ALTER TABLE PRDCT_HRRCHY_INCLSN ADD 
    FOREIGN KEY (PRDCT_SUBCAT_LVL_3_ID)
    REFERENCES PRDCT_SUBCAT_LVL_3(PRDCT_SUBCAT_LVL_3_ID)
;


-- 
-- TABLE: PRDCT_INTNDD_RLF_USE 
--

ALTER TABLE PRDCT_INTNDD_RLF_USE ADD 
    FOREIGN KEY (INTNDD_RLF_TYP_ID)
    REFERENCES INTNDD_RLF_TYP(INTNDD_RLF_TYP_ID)
;

ALTER TABLE PRDCT_INTNDD_RLF_USE ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;


-- 
-- TABLE: PRDCT_SUBCAT_LVL_1 
--

ALTER TABLE PRDCT_SUBCAT_LVL_1 ADD 
    FOREIGN KEY (PRDCT_HRRCHY_ID)
    REFERENCES PRDCT_HRRCHY(PRDCT_HRRCHY_ID)
;


-- 
-- TABLE: PRDCT_SUBCAT_LVL_2 
--

ALTER TABLE PRDCT_SUBCAT_LVL_2 ADD 
    FOREIGN KEY (PRDCT_SUBCAT_LVL_1_ID)
    REFERENCES PRDCT_SUBCAT_LVL_1(PRDCT_SUBCAT_LVL_1_ID)
;


-- 
-- TABLE: PRDCT_SUBCAT_LVL_3 
--

ALTER TABLE PRDCT_SUBCAT_LVL_3 ADD 
    FOREIGN KEY (PRDCT_SUBCAT_LVL_2_ID)
    REFERENCES PRDCT_SUBCAT_LVL_2(PRDCT_SUBCAT_LVL_2_ID)
;


-- 
-- TABLE: QA_ADT_OBSRVTN_FC 
--

ALTER TABLE QA_ADT_OBSRVTN_FC ADD 
    FOREIGN KEY (MFR_ID)
    REFERENCES MFR(MFR_ID)
;

ALTER TABLE QA_ADT_OBSRVTN_FC ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;

ALTER TABLE QA_ADT_OBSRVTN_FC ADD 
    FOREIGN KEY (QA_ADT_PRDCT_CTGRY_ID)
    REFERENCES QA_ADT_PRDCT_CTGRY(QA_ADT_PRDCT_CTGRY_ID)
;

ALTER TABLE QA_ADT_OBSRVTN_FC ADD 
    FOREIGN KEY (QA_ADT_SCHED_HDR_FC_ID)
    REFERENCES QA_ADT_SCHED_HDR_FC(QA_ADT_SCHED_HDR_FC_ID)
;

ALTER TABLE QA_ADT_OBSRVTN_FC ADD 
    FOREIGN KEY (MFR_ST_ID)
    REFERENCES MFR_ST(MFR_ST_ID)
;

ALTER TABLE QA_ADT_OBSRVTN_FC ADD 
    FOREIGN KEY (QA_ADT_OBSRVTN_CTGRY_ID)
    REFERENCES QA_ADT_OBSRVTN_CTGRY(QA_ADT_OBSRVTN_CTGRY_ID)
;


-- 
-- TABLE: QA_ADT_SCHED_HDR_FC 
--

ALTER TABLE QA_ADT_SCHED_HDR_FC ADD 
    FOREIGN KEY (SPPLR_ID)
    REFERENCES SPPLR(SPPLR_ID)
;

ALTER TABLE QA_ADT_SCHED_HDR_FC ADD 
    FOREIGN KEY (QA_ADT_STAT_ID)
    REFERENCES QA_ADT_STAT(QA_ADT_STAT_ID)
;

ALTER TABLE QA_ADT_SCHED_HDR_FC ADD 
    FOREIGN KEY (QA_ADT_TYP_ID)
    REFERENCES QA_ADT_TYP(QA_ADT_TYP_ID)
;

ALTER TABLE QA_ADT_SCHED_HDR_FC ADD 
    FOREIGN KEY (QA_ADT_APPRVL_STAT_ID)
    REFERENCES QA_ADT_APPRVL_STAT(QA_ADT_APPRVL_STAT_ID)
;

ALTER TABLE QA_ADT_SCHED_HDR_FC ADD 
    FOREIGN KEY (QA_ADT_PLND_STRT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE QA_ADT_SCHED_HDR_FC ADD 
    FOREIGN KEY (QA_ADT_ACTL_STRT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE QA_ADT_SCHED_HDR_FC ADD 
    FOREIGN KEY (QA_ADT_ACTL_END_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE QA_ADT_SCHED_HDR_FC ADD 
    FOREIGN KEY (QA_ADT_REAUDIT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE QA_ADT_SCHED_HDR_FC ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE QA_ADT_SCHED_HDR_FC ADD 
    FOREIGN KEY (QA_ADT_INSPCTN_STAT_ID)
    REFERENCES QA_ADT_INSPCTN_STAT(QA_ADT_INSPCTN_STAT_ID)
;

ALTER TABLE QA_ADT_SCHED_HDR_FC ADD 
    FOREIGN KEY (QA_ADT_RSLT_STAT_ID)
    REFERENCES QA_ADT_RSLT_STAT(QA_ADT_RSLT_STAT_ID)
;

ALTER TABLE QA_ADT_SCHED_HDR_FC ADD 
    FOREIGN KEY (QA_VST_TYP_ID)
    REFERENCES QA_VST_TYP(QA_VST_TYP_ID)
;

ALTER TABLE QA_ADT_SCHED_HDR_FC ADD 
    FOREIGN KEY (MFR_ST_ID)
    REFERENCES MFR_ST(MFR_ST_ID)
;

ALTER TABLE QA_ADT_SCHED_HDR_FC ADD 
    FOREIGN KEY (QA_LBRTRY_ID)
    REFERENCES QA_LBRTRY(QA_LBRTRY_ID)
;

ALTER TABLE QA_ADT_SCHED_HDR_FC ADD 
    FOREIGN KEY (QA_AUDITEE_TYP_ID)
    REFERENCES QA_AUDITEE_TYP(QA_AUDITEE_TYP_ID)
;

ALTER TABLE QA_ADT_SCHED_HDR_FC ADD 
    FOREIGN KEY (QA_ADT_APPRVL_STAT_TYP_ID)
    REFERENCES QA_ADT_APPRVL_STAT_TYP(QA_ADT_APPRVL_STAT_TYP_ID)
;


-- 
-- TABLE: QA_CAPA_PLN_FC 
--

ALTER TABLE QA_CAPA_PLN_FC ADD 
    FOREIGN KEY (QA_ADT_SCHED_HDR_FC_ID)
    REFERENCES QA_ADT_SCHED_HDR_FC(QA_ADT_SCHED_HDR_FC_ID)
;

ALTER TABLE QA_CAPA_PLN_FC ADD 
    FOREIGN KEY (QA_CAPA_RQRD_RSPNS_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE QA_CAPA_PLN_FC ADD 
    FOREIGN KEY (QA_CAPA_ACTL_RSPNS_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE QA_CAPA_PLN_FC ADD 
    FOREIGN KEY (QA_CAPA_APPRVL_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE QA_CAPA_PLN_FC ADD 
    FOREIGN KEY (QA_CAPA_RQRD_STRT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE QA_CAPA_PLN_FC ADD 
    FOREIGN KEY (QA_CAPA_RQRD_CMPLTN_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE QA_CAPA_PLN_FC ADD 
    FOREIGN KEY (QA_CAPA_ACTL_STRT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE QA_CAPA_PLN_FC ADD 
    FOREIGN KEY (QA_CAPA_ACTL_CMPLTN_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE QA_CAPA_PLN_FC ADD 
    FOREIGN KEY (QA_CAPA_ISUNC_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE QA_CAPA_PLN_FC ADD 
    FOREIGN KEY (QA_CAPA_PLN_STAT_ID)
    REFERENCES QA_CAPA_PLN_STAT(QA_CAPA_PLN_STAT_ID)
;

ALTER TABLE QA_CAPA_PLN_FC ADD 
    FOREIGN KEY (QA_CAPA_VERIFICATION_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;


-- 
-- TABLE: QA_CAPA_PLN_ITM_FC 
--

ALTER TABLE QA_CAPA_PLN_ITM_FC ADD 
    FOREIGN KEY (QA_ADT_OBSRVTN_FC_ID)
    REFERENCES QA_ADT_OBSRVTN_FC(QA_ADT_OBSRVTN_FC_ID)
;

ALTER TABLE QA_CAPA_PLN_ITM_FC ADD 
    FOREIGN KEY (QA_CAPA_PLN_FC_ID)
    REFERENCES QA_CAPA_PLN_FC(QA_CAPA_PLN_FC_ID)
;

ALTER TABLE QA_CAPA_PLN_ITM_FC ADD 
    FOREIGN KEY (QA_CAPA_PLN_ITM_TYP_ID)
    REFERENCES QA_CAPA_PLN_ITM_TYP(QA_CAPA_PLN_ITM_TYP_ID)
;

ALTER TABLE QA_CAPA_PLN_ITM_FC ADD 
    FOREIGN KEY (QA_CAPA_PLN_ITM_STAT_ID)
    REFERENCES QA_CAPA_PLN_ITM_STAT(QA_CAPA_PLN_ITM_STAT_ID)
;


-- 
-- TABLE: QA_LBRTRY 
--

ALTER TABLE QA_LBRTRY ADD 
    FOREIGN KEY (QA_LBRTRY_CNTRLLNG_ENTTY_ID)
    REFERENCES QA_LBRTRY_CNTRLLNG_ENTTY(QA_LBRTRY_CNTRLLNG_ENTTY_ID)
;

ALTER TABLE QA_LBRTRY ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE QA_LBRTRY ADD 
    FOREIGN KEY (QA_LBRTRY_SUB_CNTRLLNG_ENTTY_ID)
    REFERENCES QA_LBRTRY_CNTRLLNG_ENTTY(QA_LBRTRY_CNTRLLNG_ENTTY_ID)
;


-- 
-- TABLE: QA_PRDCT_LOT_ASSY_FC 
--

ALTER TABLE QA_PRDCT_LOT_ASSY_FC ADD 
    FOREIGN KEY (ESTMTD_RLS_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE QA_PRDCT_LOT_ASSY_FC ADD 
    FOREIGN KEY (ACTL_RLS_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE QA_PRDCT_LOT_ASSY_FC ADD 
    FOREIGN KEY (ESTMTD_SMPL_SHPPNG_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE QA_PRDCT_LOT_ASSY_FC ADD 
    FOREIGN KEY (ACTL_SMPL_SHPPNG_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE QA_PRDCT_LOT_ASSY_FC ADD 
    FOREIGN KEY (ESTMTD_SMPL_RCT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE QA_PRDCT_LOT_ASSY_FC ADD 
    FOREIGN KEY (ACTL_SMPL_RCT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE QA_PRDCT_LOT_ASSY_FC ADD 
    FOREIGN KEY (SMPL_AGNT_DSPTCH_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE QA_PRDCT_LOT_ASSY_FC ADD 
    FOREIGN KEY (QTY_UOM_ID)
    REFERENCES QTY_UOM(QTY_UOM_ID)
;

ALTER TABLE QA_PRDCT_LOT_ASSY_FC ADD 
    FOREIGN KEY (QA_LBRTRY_ID)
    REFERENCES QA_LBRTRY(QA_LBRTRY_ID)
;

ALTER TABLE QA_PRDCT_LOT_ASSY_FC ADD 
    FOREIGN KEY (QA_LOT_CMPLNC_STAT_ID)
    REFERENCES QA_LOT_CMPLNC_STAT(QA_LOT_CMPLNC_STAT_ID)
;

ALTER TABLE QA_PRDCT_LOT_ASSY_FC ADD 
    FOREIGN KEY (SPPLR_ID)
    REFERENCES SPPLR(SPPLR_ID)
;

ALTER TABLE QA_PRDCT_LOT_ASSY_FC ADD 
    FOREIGN KEY (PO_LIN_FC_ID)
    REFERENCES PO_LIN_FC(PO_LIN_FC_ID)
;

ALTER TABLE QA_PRDCT_LOT_ASSY_FC ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;

ALTER TABLE QA_PRDCT_LOT_ASSY_FC ADD 
    FOREIGN KEY (LOT_EXP_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE QA_PRDCT_LOT_ASSY_FC ADD 
    FOREIGN KEY (LOT_MFD_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE QA_PRDCT_LOT_ASSY_FC ADD 
    FOREIGN KEY (MFR_ID)
    REFERENCES MFR(MFR_ID)
;

ALTER TABLE QA_PRDCT_LOT_ASSY_FC ADD 
    FOREIGN KEY (QA_ASSY_STAT_ID)
    REFERENCES QA_ASSY_STAT(QA_ASSY_STAT_ID)
;

ALTER TABLE QA_PRDCT_LOT_ASSY_FC ADD 
    FOREIGN KEY (QA_TST_SETTING_ID)
    REFERENCES QA_TST_SETTING(QA_TST_SETTING_ID)
;

ALTER TABLE QA_PRDCT_LOT_ASSY_FC ADD 
    FOREIGN KEY (MFR_ST_ID)
    REFERENCES MFR_ST(MFR_ST_ID)
;

ALTER TABLE QA_PRDCT_LOT_ASSY_FC ADD 
    FOREIGN KEY (SMPL_RQSTD_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;


-- 
-- TABLE: QA_TST 
--

ALTER TABLE QA_TST ADD 
    FOREIGN KEY (QA_TST_TYP_ID)
    REFERENCES QA_TST_TYP(QA_TST_TYP_ID)
;


-- 
-- TABLE: QA_TST_ELMNT 
--

ALTER TABLE QA_TST_ELMNT ADD 
    FOREIGN KEY (QA_TST_ID)
    REFERENCES QA_TST(QA_TST_ID)
;


-- 
-- TABLE: QA_TST_RSLT_FC 
--

ALTER TABLE QA_TST_RSLT_FC ADD 
    FOREIGN KEY (TST_RSLT_VAL_UOM_ID)
    REFERENCES TST_RSLT_VAL_UOM(TST_RSLT_VAL_UOM_ID)
;

ALTER TABLE QA_TST_RSLT_FC ADD 
    FOREIGN KEY (QA_RSLT_CMPLNC_STAT_ID)
    REFERENCES QA_RSLT_CMPLNC_STAT(QA_RSLT_CMPLNC_STAT_ID)
;

ALTER TABLE QA_TST_RSLT_FC ADD 
    FOREIGN KEY (QA_PRDCT_LOT_ASSY_FC_ID)
    REFERENCES QA_PRDCT_LOT_ASSY_FC(QA_PRDCT_LOT_ASSY_FC_ID)
;

ALTER TABLE QA_TST_RSLT_FC ADD 
    FOREIGN KEY (QA_ASSY_CNTXT_ID)
    REFERENCES QA_ASSY_CNTXT(QA_ASSY_CNTXT_ID)
;

ALTER TABLE QA_TST_RSLT_FC ADD 
    FOREIGN KEY (QA_TST_ELMNT_1_ID)
    REFERENCES QA_TST_ELMNT(QA_TST_ELMNT_ID)
;

ALTER TABLE QA_TST_RSLT_FC ADD 
    FOREIGN KEY (QA_TST_ELMNT_2_ID)
    REFERENCES QA_TST_ELMNT(QA_TST_ELMNT_ID)
;


-- 
-- TABLE: QTY_UOM 
--

ALTER TABLE QTY_UOM ADD 
    FOREIGN KEY (TRADE_ITM_BASE_UOM_ID)
    REFERENCES TRADE_ITM_BASE_UOM(TRADE_ITM_BASE_UOM_ID)
;


-- 
-- TABLE: RGN 
--

ALTER TABLE RGN ADD 
    FOREIGN KEY (CMS_ID)
    REFERENCES CMS(CMS_ID)
;


-- 
-- TABLE: RMS 
--

ALTER TABLE RMS ADD 
    FOREIGN KEY (RGN_ID)
    REFERENCES RGN(RGN_ID)
;

ALTER TABLE RMS ADD 
    FOREIGN KEY (CMS_ID)
    REFERENCES CMS(CMS_ID)
;


-- 
-- TABLE: SHPMNT_DLY_TYP 
--

ALTER TABLE SHPMNT_DLY_TYP ADD 
    FOREIGN KEY (SHPMNT_DLY_RSPNSBL_PRTY_ID)
    REFERENCES SHPMNT_DLY_RSPNSBL_PRTY(SHPMNT_DLY_RSPNSBL_PRTY_ID)
;


-- 
-- TABLE: SHPMNT_FC 
--

ALTER TABLE SHPMNT_FC ADD 
    FOREIGN KEY (LGSTCS_VSSL_ID)
    REFERENCES LGSTCS_VSSL(LGSTCS_VSSL_ID)
;

ALTER TABLE SHPMNT_FC ADD 
    FOREIGN KEY (CRRNCY_ID)
    REFERENCES CRRNCY(CRRNCY_ID)
;

ALTER TABLE SHPMNT_FC ADD 
    FOREIGN KEY (PO_FC_ID)
    REFERENCES PO_FC(PO_FC_ID)
;

ALTER TABLE SHPMNT_FC ADD 
    FOREIGN KEY (SO_FC_ID)
    REFERENCES SO_FC(SO_FC_ID)
;

ALTER TABLE SHPMNT_FC ADD 
    FOREIGN KEY (SHPPNG_MTHD_ID)
    REFERENCES SHPPNG_MTHD(SHPPNG_MTHD_ID)
;

ALTER TABLE SHPMNT_FC ADD 
    FOREIGN KEY (FRT_FWDR_ID)
    REFERENCES FRT_FWDR(FRT_FWDR_ID)
;

ALTER TABLE SHPMNT_FC ADD 
    FOREIGN KEY (SRC_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE SHPMNT_FC ADD 
    FOREIGN KEY (DSTNTN_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE SHPMNT_FC ADD 
    FOREIGN KEY (ESTMTD_DEP_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SHPMNT_FC ADD 
    FOREIGN KEY (ESTMTD_ARRIVAL_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SHPMNT_FC ADD 
    FOREIGN KEY (RCVD_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SHPMNT_FC ADD 
    FOREIGN KEY (CNTRY_PRGRM_ID)
    REFERENCES CNTRY_PRGRM(CNTRY_PRGRM_ID)
;

ALTER TABLE SHPMNT_FC ADD 
    FOREIGN KEY (DONR_OFFC_ID)
    REFERENCES DONR_OFFC(DONR_OFFC_ID)
;

ALTER TABLE SHPMNT_FC ADD 
    FOREIGN KEY (TSKORDR_ID)
    REFERENCES TSKORDR(TSKORDR_ID)
;

ALTER TABLE SHPMNT_FC ADD 
    FOREIGN KEY (SPPLY_CHN_FRMWRK_ID)
    REFERENCES SPPLY_CHN_FRMWRK(SPPLY_CHN_FRMWRK_ID)
;

ALTER TABLE SHPMNT_FC ADD 
    FOREIGN KEY (WT_UOM_ID)
    REFERENCES WT_UOM(WT_UOM_ID)
;

ALTER TABLE SHPMNT_FC ADD 
    FOREIGN KEY (VOL_UOM_ID)
    REFERENCES VOL_UOM(VOL_UOM_ID)
;

ALTER TABLE SHPMNT_FC ADD 
    FOREIGN KEY (ACTL_ARRIVAL_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SHPMNT_FC ADD 
    FOREIGN KEY (ACTL_DEP_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SHPMNT_FC ADD 
    FOREIGN KEY (HLTH_ELMNT_ID)
    REFERENCES HLTH_ELMNT(HLTH_ELMNT_ID)
;


-- 
-- TABLE: SHPMNT_LEG_FC 
--

ALTER TABLE SHPMNT_LEG_FC ADD 
    FOREIGN KEY (SRC_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE SHPMNT_LEG_FC ADD 
    FOREIGN KEY (DSTNTN_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE SHPMNT_LEG_FC ADD 
    FOREIGN KEY (SHPMNT_LEG_STAT_ID)
    REFERENCES SHPMNT_LEG_STAT(SHPMNT_LEG_STAT_ID)
;

ALTER TABLE SHPMNT_LEG_FC ADD 
    FOREIGN KEY (LGSTCS_VSSL_ID)
    REFERENCES LGSTCS_VSSL(LGSTCS_VSSL_ID)
;

ALTER TABLE SHPMNT_LEG_FC ADD 
    FOREIGN KEY (SHPMNT_FC_ID)
    REFERENCES SHPMNT_FC(SHPMNT_FC_ID)
;

ALTER TABLE SHPMNT_LEG_FC ADD 
    FOREIGN KEY (ARRIVAL_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SHPMNT_LEG_FC ADD 
    FOREIGN KEY (DEP_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SHPMNT_LEG_FC ADD 
    FOREIGN KEY (FRT_FWDR_ID)
    REFERENCES FRT_FWDR(FRT_FWDR_ID)
;

ALTER TABLE SHPMNT_LEG_FC ADD 
    FOREIGN KEY (SHPPNG_MTHD_ID)
    REFERENCES SHPPNG_MTHD(SHPPNG_MTHD_ID)
;

ALTER TABLE SHPMNT_LEG_FC ADD 
    FOREIGN KEY (SHPMNT_LEG_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;


-- 
-- TABLE: SHPMNT_LIN_FC 
--

ALTER TABLE SHPMNT_LIN_FC ADD 
    FOREIGN KEY (SHPMNT_FC_ID)
    REFERENCES SHPMNT_FC(SHPMNT_FC_ID)
;

ALTER TABLE SHPMNT_LIN_FC ADD 
    FOREIGN KEY (PO_LIN_FC_ID)
    REFERENCES PO_LIN_FC(PO_LIN_FC_ID)
;

ALTER TABLE SHPMNT_LIN_FC ADD 
    FOREIGN KEY (SO_LIN_FC_ID)
    REFERENCES SO_LIN_FC(SO_LIN_FC_ID)
;

ALTER TABLE SHPMNT_LIN_FC ADD 
    FOREIGN KEY (TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;

ALTER TABLE SHPMNT_LIN_FC ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;

ALTER TABLE SHPMNT_LIN_FC ADD 
    FOREIGN KEY (QTY_UOM_ID)
    REFERENCES QTY_UOM(QTY_UOM_ID)
;

ALTER TABLE SHPMNT_LIN_FC ADD 
    FOREIGN KEY (MFR_PRDCT_LOT_ID)
    REFERENCES MFR_PRDCT_LOT(MFR_PRDCT_LOT_ID)
;

ALTER TABLE SHPMNT_LIN_FC ADD 
    FOREIGN KEY (WT_UOM_ID)
    REFERENCES WT_UOM(WT_UOM_ID)
;

ALTER TABLE SHPMNT_LIN_FC ADD 
    FOREIGN KEY (VOL_UOM_ID)
    REFERENCES VOL_UOM(VOL_UOM_ID)
;

ALTER TABLE SHPMNT_LIN_FC ADD 
    FOREIGN KEY (SRC_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE SHPMNT_LIN_FC ADD 
    FOREIGN KEY (DSTNTN_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE SHPMNT_LIN_FC ADD 
    FOREIGN KEY (FRT_FWDR_ID)
    REFERENCES FRT_FWDR(FRT_FWDR_ID)
;

ALTER TABLE SHPMNT_LIN_FC ADD 
    FOREIGN KEY (SHPPNG_MTHD_ID)
    REFERENCES SHPPNG_MTHD(SHPPNG_MTHD_ID)
;

ALTER TABLE SHPMNT_LIN_FC ADD 
    FOREIGN KEY (ACTL_ARRIVAL_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SHPMNT_LIN_FC ADD 
    FOREIGN KEY (ACTL_DEP_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SHPMNT_LIN_FC ADD 
    FOREIGN KEY (FNDNG_SRC_ID)
    REFERENCES FNDNG_SRC(FNDNG_SRC_ID)
;


-- 
-- TABLE: SHPMNT_MLSTN_FC 
--

ALTER TABLE SHPMNT_MLSTN_FC ADD 
    FOREIGN KEY (SHPMNT_FC_ID)
    REFERENCES SHPMNT_FC(SHPMNT_FC_ID)
;

ALTER TABLE SHPMNT_MLSTN_FC ADD 
    FOREIGN KEY (SHPMNT_LIN_FC_ID)
    REFERENCES SHPMNT_LIN_FC(SHPMNT_LIN_FC_ID)
;

ALTER TABLE SHPMNT_MLSTN_FC ADD 
    FOREIGN KEY (SHPMNT_MLSTN_RSN_ID)
    REFERENCES SHPMNT_MLSTN_RSN(SHPMNT_MLSTN_RSN_ID)
;

ALTER TABLE SHPMNT_MLSTN_FC ADD 
    FOREIGN KEY (SHPMNT_MLSTN_TYP_ID)
    REFERENCES SHPMNT_MLSTN_TYP(SHPMNT_MLSTN_TYP_ID)
;

ALTER TABLE SHPMNT_MLSTN_FC ADD 
    FOREIGN KEY (SHPMNT_MLSTN_STRT_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE SHPMNT_MLSTN_FC ADD 
    FOREIGN KEY (SHPMNT_MLSTN_END_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE SHPMNT_MLSTN_FC ADD 
    FOREIGN KEY (SHPMNT_MLSTN_STRT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SHPMNT_MLSTN_FC ADD 
    FOREIGN KEY (SHPMNT_MLSTN_END_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SHPMNT_MLSTN_FC ADD 
    FOREIGN KEY (SHPMNT_MLSTN_TIME_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SHPMNT_MLSTN_FC ADD 
    FOREIGN KEY (SHPMNT_MLSTN_PLND_STRT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SHPMNT_MLSTN_FC ADD 
    FOREIGN KEY (SHPMNT_MLSTN_PLND_END_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;


-- 
-- TABLE: SO_DLY_FC 
--

ALTER TABLE SO_DLY_FC ADD 
    FOREIGN KEY (SO_FC_ID)
    REFERENCES SO_FC(SO_FC_ID)
;

ALTER TABLE SO_DLY_FC ADD 
    FOREIGN KEY (DT_DLY_CLRD_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SO_DLY_FC ADD 
    FOREIGN KEY (DT_DLY_STARTED_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SO_DLY_FC ADD 
    FOREIGN KEY (SO_DLY_RSN_ID)
    REFERENCES SO_DLY_RSN(SO_DLY_RSN_ID)
;

ALTER TABLE SO_DLY_FC ADD 
    FOREIGN KEY (SO_DLY_TYP_ID)
    REFERENCES SO_DLY_TYP(SO_DLY_TYP_ID)
;


-- 
-- TABLE: SO_DLY_TYP 
--

ALTER TABLE SO_DLY_TYP ADD 
    FOREIGN KEY (SO_DLY_RSPNSBL_PRTY_ID)
    REFERENCES SO_DLY_RSPNSBL_PRTY(SO_DLY_RSPNSBL_PRTY_ID)
;


-- 
-- TABLE: SO_FC 
--

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (PO_FC_ID)
    REFERENCES PO_FC(PO_FC_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (SPPLR_ID)
    REFERENCES SPPLR(SPPLR_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (DONR_OFFC_ID)
    REFERENCES DONR_OFFC(DONR_OFFC_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (ESTMTD_RDY_FOR_FRT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (PLND_DLVR_NOTE_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (PLND_DLVRY_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (PLND_IN_CNTRY_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (PLND_PKUP_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (PRJCTD_DLVRY_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (RQRD_DLVRY_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (SHPPNG_MTHD_ID)
    REFERENCES SHPPNG_MTHD(SHPPNG_MTHD_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (SRC_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (CNTRY_PRGRM_ID)
    REFERENCES CNTRY_PRGRM(CNTRY_PRGRM_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (INCOTERM_ID)
    REFERENCES INCOTERM(INCOTERM_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (TSKORDR_ID)
    REFERENCES TSKORDR(TSKORDR_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (DSTNTN_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (FRT_FWDR_ID)
    REFERENCES FRT_FWDR(FRT_FWDR_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (SO_DOC_CMPLTN_STAT_ID)
    REFERENCES SO_DOC_CMPLTN_STAT(SO_DOC_CMPLTN_STAT_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (SO_STAT_ID)
    REFERENCES SO_STAT(SO_STAT_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (CRRNCY_ID)
    REFERENCES CRRNCY(CRRNCY_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (PPLN_ORDR_DISP_ID)
    REFERENCES PPLN_ORDR_DISP(PPLN_ORDR_DISP_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (PPLN_STG_ID)
    REFERENCES PPLN_STG(PPLN_STG_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (SPPLY_CHN_FRMWRK_ID)
    REFERENCES SPPLY_CHN_FRMWRK(SPPLY_CHN_FRMWRK_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (SO_TYP_ID)
    REFERENCES SO_TYP(SO_TYP_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (SO_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (PMT_TRMS_TYP_ID)
    REFERENCES PMT_TRMS_TYP(PMT_TRMS_TYP_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (BLNKT_SO_VLD_FROM_DT)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (BLNKT_SO_VLD_TO_DT)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (HLTH_ELMNT_ID)
    REFERENCES HLTH_ELMNT(HLTH_ELMNT_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (PQ_FC_ID)
    REFERENCES PQ_FC(PQ_FC_ID)
;

ALTER TABLE SO_FC ADD 
    FOREIGN KEY (FNDNG_SRC_ID)
    REFERENCES FNDNG_SRC(FNDNG_SRC_ID)
;


-- 
-- TABLE: SO_HDR_EXPNS_FC 
--

ALTER TABLE SO_HDR_EXPNS_FC ADD 
    FOREIGN KEY (SO_FC_ID)
    REFERENCES SO_FC(SO_FC_ID)
;

ALTER TABLE SO_HDR_EXPNS_FC ADD 
    FOREIGN KEY (SO_HDR_EXPNS_TYP_ID)
    REFERENCES SO_HDR_EXPNS_TYP(SO_HDR_EXPNS_TYP_ID)
;


-- 
-- TABLE: SO_KIC_FC 
--

ALTER TABLE SO_KIC_FC ADD 
    FOREIGN KEY (SO_FC_ID)
    REFERENCES SO_FC(SO_FC_ID)
;

ALTER TABLE SO_KIC_FC ADD 
    FOREIGN KEY (SO_KIC_RSN_ID)
    REFERENCES SO_KIC_RSN(SO_KIC_RSN_ID)
;

ALTER TABLE SO_KIC_FC ADD 
    FOREIGN KEY (SO_KEY_INFO_TYP_ID)
    REFERENCES SO_KEY_INFO_TYP(SO_KEY_INFO_TYP_ID)
;

ALTER TABLE SO_KIC_FC ADD 
    FOREIGN KEY (SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;


-- 
-- TABLE: SO_LIN_FC 
--

ALTER TABLE SO_LIN_FC ADD 
    FOREIGN KEY (PO_LIN_FC_ID)
    REFERENCES PO_LIN_FC(PO_LIN_FC_ID)
;

ALTER TABLE SO_LIN_FC ADD 
    FOREIGN KEY (SO_FC_ID)
    REFERENCES SO_FC(SO_FC_ID)
;

ALTER TABLE SO_LIN_FC ADD 
    FOREIGN KEY (TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;

ALTER TABLE SO_LIN_FC ADD 
    FOREIGN KEY (MFR_ID)
    REFERENCES MFR(MFR_ID)
;

ALTER TABLE SO_LIN_FC ADD 
    FOREIGN KEY (SO_LIN_STAT_ID)
    REFERENCES SO_LIN_STAT(SO_LIN_STAT_ID)
;

ALTER TABLE SO_LIN_FC ADD 
    FOREIGN KEY (SO_LIN_STAT_RSN_ID)
    REFERENCES SO_LIN_STAT_RSN(SO_LIN_STAT_RSN_ID)
;

ALTER TABLE SO_LIN_FC ADD 
    FOREIGN KEY (QTY_UOM_ID)
    REFERENCES QTY_UOM(QTY_UOM_ID)
;

ALTER TABLE SO_LIN_FC ADD 
    FOREIGN KEY (PLND_DLVRY_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SO_LIN_FC ADD 
    FOREIGN KEY (PLND_IN_CNTRY_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SO_LIN_FC ADD 
    FOREIGN KEY (PRJCTD_DLVRY_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SO_LIN_FC ADD 
    FOREIGN KEY (PRJCTD_DLVRY_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SO_LIN_FC ADD 
    FOREIGN KEY (ESTMTD_RDY_FOR_FRT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SO_LIN_FC ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;

ALTER TABLE SO_LIN_FC ADD 
    FOREIGN KEY (PQ_LIN_FC_ID)
    REFERENCES PQ_LIN_FC(PQ_LIN_FC_ID)
;

ALTER TABLE SO_LIN_FC ADD 
    FOREIGN KEY (SRC_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE SO_LIN_FC ADD 
    FOREIGN KEY (DSTNTN_LGSTCS_LCTN_ID)
    REFERENCES LGSTCS_LCTN(LGSTCS_LCTN_ID)
;

ALTER TABLE SO_LIN_FC ADD 
    FOREIGN KEY (SHPPNG_MTHD_ID)
    REFERENCES SHPPNG_MTHD(SHPPNG_MTHD_ID)
;

ALTER TABLE SO_LIN_FC ADD 
    FOREIGN KEY (FRT_FWDR_ID)
    REFERENCES FRT_FWDR(FRT_FWDR_ID)
;

ALTER TABLE SO_LIN_FC ADD 
    FOREIGN KEY (SRC_INCOTERM_ID)
    REFERENCES INCOTERM(INCOTERM_ID)
;

ALTER TABLE SO_LIN_FC ADD 
    FOREIGN KEY (DSTNTN_INCOTERM_ID)
    REFERENCES INCOTERM(INCOTERM_ID)
;

ALTER TABLE SO_LIN_FC ADD 
    FOREIGN KEY (FNDNG_SRC_ID)
    REFERENCES FNDNG_SRC(FNDNG_SRC_ID)
;

ALTER TABLE SO_LIN_FC ADD 
    FOREIGN KEY (HLTH_ELMNT_ID)
    REFERENCES HLTH_ELMNT(HLTH_ELMNT_ID)
;

ALTER TABLE SO_LIN_FC ADD 
    FOREIGN KEY (SPPLY_CHN_FRMWRK_ID)
    REFERENCES SPPLY_CHN_FRMWRK(SPPLY_CHN_FRMWRK_ID)
;


-- 
-- TABLE: SO_MLSTN_FC 
--

ALTER TABLE SO_MLSTN_FC ADD 
    FOREIGN KEY (SO_FC_ID)
    REFERENCES SO_FC(SO_FC_ID)
;

ALTER TABLE SO_MLSTN_FC ADD 
    FOREIGN KEY (SO_MLSTN_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SO_MLSTN_FC ADD 
    FOREIGN KEY (SO_MLSTN_TYP_ID)
    REFERENCES SO_MLSTN_TYP(SO_MLSTN_TYP_ID)
;

ALTER TABLE SO_MLSTN_FC ADD 
    FOREIGN KEY (SO_MLSTN_RSN_ID)
    REFERENCES SO_MLSTN_RSN(SO_MLSTN_RSN_ID)
;

ALTER TABLE SO_MLSTN_FC ADD 
    FOREIGN KEY (SO_LIN_FC_ID)
    REFERENCES SO_LIN_FC(SO_LIN_FC_ID)
;


-- 
-- TABLE: SPPLR_CNTRCT 
--

ALTER TABLE SPPLR_CNTRCT ADD 
    FOREIGN KEY (SPPLR_ID)
    REFERENCES SPPLR(SPPLR_ID)
;

ALTER TABLE SPPLR_CNTRCT ADD 
    FOREIGN KEY (TSKORDR_ID)
    REFERENCES TSKORDR(TSKORDR_ID)
;

ALTER TABLE SPPLR_CNTRCT ADD 
    FOREIGN KEY (SPPLR_CNTRCT_STAT_ID)
    REFERENCES SPPLR_CNTRCT_STAT(SPPLR_CNTRCT_STAT_ID)
;

ALTER TABLE SPPLR_CNTRCT ADD 
    FOREIGN KEY (SPPLR_CNTRCT_CLSS_ID)
    REFERENCES SPPLR_CNTRCT_CLSS(SPPLR_CNTRCT_CLSS_ID)
;

ALTER TABLE SPPLR_CNTRCT ADD 
    FOREIGN KEY (SPPLR_CNTRCT_BEGIN_EFF_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SPPLR_CNTRCT ADD 
    FOREIGN KEY (SPPLR_CNTRCT_END_EFF_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SPPLR_CNTRCT ADD 
    FOREIGN KEY (SPPLR_CNTRCT_ORGN_ID)
    REFERENCES SPPLR_CNTRCT_ORGN(SPPLR_CNTRCT_ORGN_ID)
;

ALTER TABLE SPPLR_CNTRCT ADD 
    FOREIGN KEY (SPPLR_CNTRCT_CTGRY_ID)
    REFERENCES SPPLR_CNTRCT_CTGRY(SPPLR_CNTRCT_CTGRY_ID)
;

ALTER TABLE SPPLR_CNTRCT ADD 
    FOREIGN KEY (SPPLR_CNTRCT_EXECUTION_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SPPLR_CNTRCT ADD 
    FOREIGN KEY (CRRNCY_ID)
    REFERENCES CRRNCY(CRRNCY_ID)
;

ALTER TABLE SPPLR_CNTRCT ADD 
    FOREIGN KEY (SPPLR_CNTRCT_SUBSTATUS_ID)
    REFERENCES SPPLR_CNTRCT_SUBSTATUS(SPPLR_CNTRCT_SUBSTATUS_ID)
;

ALTER TABLE SPPLR_CNTRCT ADD 
    FOREIGN KEY (SPPLR_CNTRCT_NEGOTIATION_STAT_ID)
    REFERENCES SPPLR_CNTRCT_NEGOTIATION_STAT(SPPLR_CNTRCT_NEGOTIATION_STAT_ID)
;

ALTER TABLE SPPLR_CNTRCT ADD 
    FOREIGN KEY (PRCRNG_AGNCY_ID)
    REFERENCES PRCRNG_AGNCY(PRCRNG_AGNCY_ID)
;

ALTER TABLE SPPLR_CNTRCT ADD 
    FOREIGN KEY (IMPLMNTNG_PRTNR_ID)
    REFERENCES IMPLMNTNG_PRTNR(IMPLMNTNG_PRTNR_ID)
;


-- 
-- TABLE: SPPLR_CNTRCT_PRDCT_DTL 
--

ALTER TABLE SPPLR_CNTRCT_PRDCT_DTL ADD 
    FOREIGN KEY (TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;

ALTER TABLE SPPLR_CNTRCT_PRDCT_DTL ADD 
    FOREIGN KEY (SPPLR_CNTRCT_ID)
    REFERENCES SPPLR_CNTRCT(SPPLR_CNTRCT_ID)
;

ALTER TABLE SPPLR_CNTRCT_PRDCT_DTL ADD 
    FOREIGN KEY (SPPLR_CNTRCT_PRDCT_PRICING_TYP_ID)
    REFERENCES SPPLR_CNTRCT_PRDCT_PRICING_TYP(SPPLR_CNTRCT_PRDCT_PRICING_TYP_ID)
;

ALTER TABLE SPPLR_CNTRCT_PRDCT_DTL ADD 
    FOREIGN KEY (SPPLR_CNTRCT_PRDCT_DTL_END_EFF_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SPPLR_CNTRCT_PRDCT_DTL ADD 
    FOREIGN KEY (SPPLR_CNTRCT_PRDCT_DTL_BEGIN_EFF_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SPPLR_CNTRCT_PRDCT_DTL ADD 
    FOREIGN KEY (MFR_ST_ID)
    REFERENCES MFR_ST(MFR_ST_ID)
;


-- 
-- TABLE: SPPLR_CNTRCT_TRM_DTL 
--

ALTER TABLE SPPLR_CNTRCT_TRM_DTL ADD 
    FOREIGN KEY (SPPLR_CNTRCT_ID)
    REFERENCES SPPLR_CNTRCT(SPPLR_CNTRCT_ID)
;

ALTER TABLE SPPLR_CNTRCT_TRM_DTL ADD 
    FOREIGN KEY (SPPLR_CNTRCT_TRM_EXECUTION_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE SPPLR_CNTRCT_TRM_DTL ADD 
    FOREIGN KEY (SPPLR_CNTRCT_TRM_STAT_ID)
    REFERENCES SPPLR_CNTRCT_TRM_STAT(SPPLR_CNTRCT_TRM_STAT_ID)
;

ALTER TABLE SPPLR_CNTRCT_TRM_DTL ADD 
    FOREIGN KEY (SPPLR_CNTRCT_TRM_TYP_ID)
    REFERENCES SPPLR_CNTRCT_TRM_TYP(SPPLR_CNTRCT_TRM_TYP_ID)
;




-- 
-- TABLE: SRD_DAY 
--

ALTER TABLE SRD_DAY ADD 
    FOREIGN KEY (SRD_MTH_ID)
    REFERENCES SRD_MTH(SRD_MTH_ID)
;

ALTER TABLE SRD_DAY ADD 
    FOREIGN KEY (SRD_QTR_ID)
    REFERENCES SRD_QTR(SRD_QTR_ID)
;

ALTER TABLE SRD_DAY ADD 
    FOREIGN KEY (SRD_FQ_ID)
    REFERENCES SRD_QTR(SRD_QTR_ID)
;

ALTER TABLE SRD_DAY ADD 
    FOREIGN KEY (SRD_YR_ID)
    REFERENCES SRD_YR(SRD_YR_ID)
;

ALTER TABLE SRD_DAY ADD 
    FOREIGN KEY (SRD_FY_ID)
    REFERENCES SRD_YR(SRD_YR_ID)
;


-- 
-- TABLE: SRD_MTH 
--

ALTER TABLE SRD_MTH ADD 
    FOREIGN KEY (SRD_QTR_ID)
    REFERENCES SRD_QTR(SRD_QTR_ID)
;

ALTER TABLE SRD_MTH ADD 
    FOREIGN KEY (SRD_YR_ID)
    REFERENCES SRD_YR(SRD_YR_ID)
;

ALTER TABLE SRD_MTH ADD 
    FOREIGN KEY (SRD_FY_ID)
    REFERENCES SRD_YR(SRD_YR_ID)
;

ALTER TABLE SRD_MTH ADD 
    FOREIGN KEY (SRD_FQ_ID)
    REFERENCES SRD_QTR(SRD_QTR_ID)
;


-- 
-- TABLE: SRD_QTR 
--

ALTER TABLE SRD_QTR ADD 
    FOREIGN KEY (SRD_YR_ID)
    REFERENCES SRD_YR(SRD_YR_ID)
;

ALTER TABLE SRD_QTR ADD 
    FOREIGN KEY (SRD_FY_ID)
    REFERENCES SRD_YR(SRD_YR_ID)
;


-- 
-- TABLE: STCK_RPTNG_RT_FC 
--

ALTER TABLE STCK_RPTNG_RT_FC ADD 
    FOREIGN KEY (SRD_MTH_ID)
    REFERENCES SRD_MTH(SRD_MTH_ID)
;

ALTER TABLE STCK_RPTNG_RT_FC ADD 
    FOREIGN KEY (CNTRY_PRGRM_ID)
    REFERENCES CNTRY_PRGRM(CNTRY_PRGRM_ID)
;

ALTER TABLE STCK_RPTNG_RT_FC ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE STCK_RPTNG_RT_FC ADD 
    FOREIGN KEY (ADMNSTRTV_GGRPHY_LVL_ID)
    REFERENCES ADMNSTRTV_GGRPHY_LVL(ADMNSTRTV_GGRPHY_LVL_ID)
;


-- 
-- TABLE: SVC_DLVRY_PNT 
--

ALTER TABLE SVC_DLVRY_PNT ADD 
    FOREIGN KEY (FCLTY_ID)
    REFERENCES FCLTY(FCLTY_ID)
;


-- 
-- TABLE: TA_TRVL_PLN_CNCRRNC_FC 
--

ALTER TABLE TA_TRVL_PLN_CNCRRNC_FC ADD 
    FOREIGN KEY (APPRVL_RQSTD_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE TA_TRVL_PLN_CNCRRNC_FC ADD 
    FOREIGN KEY (APPRVL_DECISION_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE TA_TRVL_PLN_CNCRRNC_FC ADD 
    FOREIGN KEY (TA_TRVL_PLN_HDR_FC_ID)
    REFERENCES TA_TRVL_PLN_HDR_FC(TA_TRVL_PLN_HDR_FC_ID)
;

ALTER TABLE TA_TRVL_PLN_CNCRRNC_FC ADD 
    FOREIGN KEY (TA_TRVL_PLN_APPRVL_STAT_ID)
    REFERENCES TA_TRVL_PLN_APPRVL_STAT(TA_TRVL_PLN_APPRVL_STAT_ID)
;


-- 
-- TABLE: TA_TRVL_PLN_HDR_FC 
--

ALTER TABLE TA_TRVL_PLN_HDR_FC ADD 
    FOREIGN KEY (PLND_TRP_END_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE TA_TRVL_PLN_HDR_FC ADD 
    FOREIGN KEY (ACTL_TRP_END_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE TA_TRVL_PLN_HDR_FC ADD 
    FOREIGN KEY (PLND_TRP_STRT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE TA_TRVL_PLN_HDR_FC ADD 
    FOREIGN KEY (ACTL_TRP_STRT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE TA_TRVL_PLN_HDR_FC ADD 
    FOREIGN KEY (HLTH_ELMNT_ID)
    REFERENCES HLTH_ELMNT(HLTH_ELMNT_ID)
;

ALTER TABLE TA_TRVL_PLN_HDR_FC ADD 
    FOREIGN KEY (DONR_OFFC_ID)
    REFERENCES DONR_OFFC(DONR_OFFC_ID)
;

ALTER TABLE TA_TRVL_PLN_HDR_FC ADD 
    FOREIGN KEY (TA_TRVL_PLN_APPRVL_STAT_ID)
    REFERENCES TA_TRVL_PLN_APPRVL_STAT(TA_TRVL_PLN_APPRVL_STAT_ID)
;

ALTER TABLE TA_TRVL_PLN_HDR_FC ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE TA_TRVL_PLN_HDR_FC ADD 
    FOREIGN KEY (TOLIN_ID)
    REFERENCES TOLIN(TOLIN_ID)
;

ALTER TABLE TA_TRVL_PLN_HDR_FC ADD 
    FOREIGN KEY (PRIME_IMPLMNTNG_PRTNR_ID)
    REFERENCES IMPLMNTNG_PRTNR(IMPLMNTNG_PRTNR_ID)
;

ALTER TABLE TA_TRVL_PLN_HDR_FC ADD 
    FOREIGN KEY (APPRVL_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE TA_TRVL_PLN_HDR_FC ADD 
    FOREIGN KEY (SBMSSN_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE TA_TRVL_PLN_HDR_FC ADD 
    FOREIGN KEY (SUB_IMPLMNTNG_PRTNR_ID)
    REFERENCES IMPLMNTNG_PRTNR(IMPLMNTNG_PRTNR_ID)
;

ALTER TABLE TA_TRVL_PLN_HDR_FC ADD 
    FOREIGN KEY (TA_VST_CTGRY_ID)
    REFERENCES TA_VST_CTGRY(TA_VST_CTGRY_ID)
;


-- 
-- TABLE: TA_TRVL_PLN_OBJCTV_FC 
--

ALTER TABLE TA_TRVL_PLN_OBJCTV_FC ADD 
    FOREIGN KEY (TA_TRVL_PLN_HDR_FC_ID)
    REFERENCES TA_TRVL_PLN_HDR_FC(TA_TRVL_PLN_HDR_FC_ID)
;

ALTER TABLE TA_TRVL_PLN_OBJCTV_FC ADD 
    FOREIGN KEY (FNNCL_RPRT_TCHNCL_SUBSUBCAT_ID)
    REFERENCES FNNCL_RPRT_TCHNCL_SUBSUBCAT(FNNCL_RPRT_TCHNCL_SUBSUBCAT_ID)
;

ALTER TABLE TA_TRVL_PLN_OBJCTV_FC ADD 
    FOREIGN KEY (TA_SKLL_SET_ID)
    REFERENCES TA_SKLL_SET(TA_SKLL_SET_ID)
;


-- 
-- TABLE: TA_VST_ACTVTY_FC 
--

ALTER TABLE TA_VST_ACTVTY_FC ADD 
    FOREIGN KEY (TA_SKLL_SET_ID)
    REFERENCES TA_SKLL_SET(TA_SKLL_SET_ID)
;

ALTER TABLE TA_VST_ACTVTY_FC ADD 
    FOREIGN KEY (FNNCL_RPRT_TCHNCL_SUBSUBCAT_ID)
    REFERENCES FNNCL_RPRT_TCHNCL_SUBSUBCAT(FNNCL_RPRT_TCHNCL_SUBSUBCAT_ID)
;

ALTER TABLE TA_VST_ACTVTY_FC ADD 
    FOREIGN KEY (TA_TRVL_PLN_OBJCTV_FC_ID)
    REFERENCES TA_TRVL_PLN_OBJCTV_FC(TA_TRVL_PLN_OBJCTV_FC_ID)
;

ALTER TABLE TA_VST_ACTVTY_FC ADD 
    FOREIGN KEY (TA_ACTVTY_RSLT_STAT_ID)
    REFERENCES TA_ACTVTY_RSLT_STAT(TA_ACTVTY_RSLT_STAT_ID)
;

ALTER TABLE TA_VST_ACTVTY_FC ADD 
    FOREIGN KEY (TA_VST_FC_ID)
    REFERENCES TA_VST_FC(TA_VST_FC_ID)
;


-- 
-- TABLE: TA_VST_FC 
--

ALTER TABLE TA_VST_FC ADD 
    FOREIGN KEY (DONR_OFFC_ID)
    REFERENCES DONR_OFFC(DONR_OFFC_ID)
;

ALTER TABLE TA_VST_FC ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE TA_VST_FC ADD 
    FOREIGN KEY (TOLIN_ID)
    REFERENCES TOLIN(TOLIN_ID)
;

ALTER TABLE TA_VST_FC ADD 
    FOREIGN KEY (HLTH_ELMNT_ID)
    REFERENCES HLTH_ELMNT(HLTH_ELMNT_ID)
;

ALTER TABLE TA_VST_FC ADD 
    FOREIGN KEY (PRIME_IMPLMNTNG_PRTNR_ID)
    REFERENCES IMPLMNTNG_PRTNR(IMPLMNTNG_PRTNR_ID)
;

ALTER TABLE TA_VST_FC ADD 
    FOREIGN KEY (SUB_IMPLMNTNG_PRTNR_ID)
    REFERENCES IMPLMNTNG_PRTNR(IMPLMNTNG_PRTNR_ID)
;

ALTER TABLE TA_VST_FC ADD 
    FOREIGN KEY (TA_VST_CTGRY_ID)
    REFERENCES TA_VST_CTGRY(TA_VST_CTGRY_ID)
;

ALTER TABLE TA_VST_FC ADD 
    FOREIGN KEY (TA_TRVL_PLN_HDR_FC_ID)
    REFERENCES TA_TRVL_PLN_HDR_FC(TA_TRVL_PLN_HDR_FC_ID)
;

ALTER TABLE TA_VST_FC ADD 
    FOREIGN KEY (PLND_TRP_STRT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE TA_VST_FC ADD 
    FOREIGN KEY (ACTL_TRP_STRT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE TA_VST_FC ADD 
    FOREIGN KEY (PLND_TRP_END_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE TA_VST_FC ADD 
    FOREIGN KEY (ACTL_TRP_END_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;


-- 
-- TABLE: TA_VST_TECH_RPRT_FC 
--

ALTER TABLE TA_VST_TECH_RPRT_FC ADD 
    FOREIGN KEY (TA_VST_FC_ID)
    REFERENCES TA_VST_FC(TA_VST_FC_ID)
;

ALTER TABLE TA_VST_TECH_RPRT_FC ADD 
    FOREIGN KEY (TA_VST_ACTVTY_FC_ID)
    REFERENCES TA_VST_ACTVTY_FC(TA_VST_ACTVTY_FC_ID)
;


-- 
-- TABLE: TA_VST_TRP_RPRT_FC 
--

ALTER TABLE TA_VST_TRP_RPRT_FC ADD 
    FOREIGN KEY (TA_VST_FC_ID)
    REFERENCES TA_VST_FC(TA_VST_FC_ID)
;

ALTER TABLE TA_VST_TRP_RPRT_FC ADD 
    FOREIGN KEY (TA_VST_ACTVTY_FC_ID)
    REFERENCES TA_VST_ACTVTY_FC(TA_VST_ACTVTY_FC_ID)
;


-- 
-- TABLE: TCHNCL_ADVSR_AVLBLTY_FC 
--

ALTER TABLE TCHNCL_ADVSR_AVLBLTY_FC ADD 
    FOREIGN KEY (TA_SKLL_SET_ID)
    REFERENCES TA_SKLL_SET(TA_SKLL_SET_ID)
;

ALTER TABLE TCHNCL_ADVSR_AVLBLTY_FC ADD 
    FOREIGN KEY (TA_VST_CTGRY_ID)
    REFERENCES TA_VST_CTGRY(TA_VST_CTGRY_ID)
;

ALTER TABLE TCHNCL_ADVSR_AVLBLTY_FC ADD 
    FOREIGN KEY (PRD_STRT_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE TCHNCL_ADVSR_AVLBLTY_FC ADD 
    FOREIGN KEY (PRD_END_DT_SRD_DAY_ID)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;


-- 
-- TABLE: TOLIN 
--

ALTER TABLE TOLIN ADD 
    FOREIGN KEY (TSKORDR_ID)
    REFERENCES TSKORDR(TSKORDR_ID)
;


-- 
-- TABLE: TRADE_ITM 
--

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_5_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_5(USAID_PRDCT_CLSSFCTN_LVL_5_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (MFR_ID)
    REFERENCES MFR(MFR_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (TRADE_ITM_UNIT_OF_ISSU_ID)
    REFERENCES TRADE_ITM_UNIT_OF_ISSU(TRADE_ITM_UNIT_OF_ISSU_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (WT_UOM_ID)
    REFERENCES WT_UOM(WT_UOM_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (DEPTH_LNR_UOM_ID)
    REFERENCES LNR_UOM(LNR_UOM_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (VOL_UOM_ID)
    REFERENCES VOL_UOM(VOL_UOM_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (WDTH_LNR_UOM_ID)
    REFERENCES LNR_UOM(LNR_UOM_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (HT_LNR_UOM_ID)
    REFERENCES LNR_UOM(LNR_UOM_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (MFR_ST_ID)
    REFERENCES MFR_ST(MFR_ST_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (DRG_UOD_ID)
    REFERENCES DRG_UOD(DRG_UOD_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (CNDM_PRDCT_NVLTY_TYP_ID)
    REFERENCES CNDM_PRDCT_NVLTY_TYP(CNDM_PRDCT_NVLTY_TYP_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (IUD_TYP_ID)
    REFERENCES IUD_TYP(IUD_TYP_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (ANTIMLRL_SCNDRY_ACTV_INGRDNT_ID)
    REFERENCES ANTIMLRL_ACTV_INGRDNT(ANTIMLRL_ACTV_INGRDNT_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (ANTIMLRL_PRMRY_ACTV_INGRDNT_ID)
    REFERENCES ANTIMLRL_ACTV_INGRDNT(ANTIMLRL_ACTV_INGRDNT_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (MED_DVC_PRDCT_TYP_ID)
    REFERENCES MED_DVC_PRDCT_TYP(MED_DVC_PRDCT_TYP_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (LAB_EQPMNT_PRDCT_TYP_ID)
    REFERENCES LAB_EQPMNT_PRDCT_TYP(LAB_EQPMNT_PRDCT_TYP_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (ANTIMLRL_PRDCT_TYP_ID)
    REFERENCES ANTIMLRL_PRDCT_TYP(ANTIMLRL_PRDCT_TYP_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (PRH_PRDCT_SPRMCD_ACTV_INGRDNT_ID)
    REFERENCES PRH_PRDCT_SPRMCD_ACTV_INGRDNT(PRH_PRDCT_SPRMCD_ACTV_INGRDNT_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (FML_CNDM_PRDCT_TYP_ID)
    REFERENCES FML_CNDM_PRDCT_TYP(FML_CNDM_PRDCT_TYP_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (CNDM_PRDCT_SZ_ID)
    REFERENCES CNDM_PRDCT_SZ(CNDM_PRDCT_SZ_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (RTK_TGT_PTHGN_ID)
    REFERENCES RTK_TGT_PTHGN(RTK_TGT_PTHGN_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (DRG_FRMLRY_ID)
    REFERENCES DRG_FRMLRY(DRG_FRMLRY_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (THRPTC_FD_TRTD_CNDTN_ID)
    REFERENCES THRPTC_FD_TRTD_CNDTN(THRPTC_FD_TRTD_CNDTN_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (PRH_PRDCT_TYP_ID)
    REFERENCES PRH_PRDCT_TYP(PRH_PRDCT_TYP_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (THRPTC_FD_FRTFCTN_TYP_ID)
    REFERENCES THRPTC_FD_FRTFCTN_TYP(THRPTC_FD_FRTFCTN_TYP_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (LAB_SPPLY_PRDCT_TYP_ID)
    REFERENCES LAB_SPPLY_PRDCT_TYP(LAB_SPPLY_PRDCT_TYP_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (ROUTEOFADMINISTRATION_ID)
    REFERENCES ROUTEOFADMINISTRATION(ROUTEOFADMINISTRATION_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (PRH_CNTRCPTV_MTHD_ID)
    REFERENCES PRH_CNTRCPTV_MTHD(PRH_CNTRCPTV_MTHD_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (CNDM_PRDCT_FLVR_ID)
    REFERENCES CNDM_PRDCT_FLVR(CNDM_PRDCT_FLVR_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (SVC_PRDCT_TYP_ID)
    REFERENCES SVC_PRDCT_TYP(SVC_PRDCT_TYP_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (DRG_UOP_ID)
    REFERENCES DRG_UOP(DRG_UOP_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (CNDM_PRDCT_TXTR_ID)
    REFERENCES CNDM_PRDCT_TXTR(CNDM_PRDCT_TXTR_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (CNDM_PRDCT_MTRL_ID)
    REFERENCES CNDM_PRDCT_MTRL(CNDM_PRDCT_MTRL_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (IUD_ACTV_INGRDNT_ID)
    REFERENCES IUD_ACTV_INGRDNT(IUD_ACTV_INGRDNT_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (DRG_UOS_ID)
    REFERENCES DRG_UOS(DRG_UOS_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (TRADE_ITM_BASE_UOM_ID)
    REFERENCES TRADE_ITM_BASE_UOM(TRADE_ITM_BASE_UOM_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (GMDN_ID)
    REFERENCES GMDN(GMDN_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (UMDNS_ID)
    REFERENCES UMDNS(UMDNS_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (UNSPSC_CMMDTY_ID)
    REFERENCES UNSPSC_CMMDTY(UNSPSC_CMMDTY_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (DOSAGEFORMTYPE_ID)
    REFERENCES DOSAGEFORMTYPE(DOSAGEFORMTYPE_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (CNDM_PRDCT_CLR_ID)
    REFERENCES CNDM_PRDCT_CLR(CNDM_PRDCT_CLR_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (CNDM_PRDCT_SCNT_ID)
    REFERENCES CNDM_PRDCT_SCNT(CNDM_PRDCT_SCNT_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (GPC_BRCK_ID)
    REFERENCES GPC_BRCK(GPC_BRCK_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (PRFRRD_GLBL_CLSSFCTN_SYSTM_ID)
    REFERENCES PRFRRD_GLBL_CLSSFCTN_SYSTM(PRFRRD_GLBL_CLSSFCTN_SYSTM_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (PACKAGINGTYPECODE_ID)
    REFERENCES PACKAGINGTYPECODE(PACKAGINGTYPECODE_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (CHILDTRADEITEM)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (PKG_MARKED_LANGUAGE_CD_ID)
    REFERENCES PKG_MARKED_LANGUAGE_CD(PKG_MARKED_LANGUAGE_CD_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (COMMUNITYVISIBILITYDATETIME)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (CANCELLEDDATETIME)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (CONSUMERAVAILABILITYDATETIME)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (DISCONTINUEDDATETIME)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (EFFECTIVEDATETIME)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (ENDAVAILABILITYDATETIME)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (FINALBATCHEXPIRYDATETIME)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (PUBLICATIONDATETIME)
    REFERENCES SRD_DAY(SRD_DAY_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (CHEMICALPROPERTYTYPEBIOHAZARD_ID)
    REFERENCES CHEMICALPROPERTYTYPEBIOHAZARD(CHEMICALPROPERTYTYPEBIOHAZARD_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (BASETRADEITEM)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;

ALTER TABLE TRADE_ITM ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_4_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_4(USAID_PRDCT_CLSSFCTN_LVL_4_ID)
;


-- 
-- TABLE: TRADE_ITM_ASSCTN 
--

ALTER TABLE TRADE_ITM_ASSCTN ADD 
    FOREIGN KEY (TRADE_ITM_ASSCTN_TYP_ID)
    REFERENCES TRADE_ITM_ASSCTN_TYP(TRADE_ITM_ASSCTN_TYP_ID)
;

ALTER TABLE TRADE_ITM_ASSCTN ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE TRADE_ITM_ASSCTN ADD 
    FOREIGN KEY (PRNT_TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;

ALTER TABLE TRADE_ITM_ASSCTN ADD 
    FOREIGN KEY (CHLD_TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;


-- 
-- TABLE: TRADE_ITM_CARE_INSTRCTN 
--

ALTER TABLE TRADE_ITM_CARE_INSTRCTN ADD 
    FOREIGN KEY (CARE_INSTRCTN_TYP_ID)
    REFERENCES CARE_INSTRCTN_TYP(CARE_INSTRCTN_TYP_ID)
;

ALTER TABLE TRADE_ITM_CARE_INSTRCTN ADD 
    FOREIGN KEY (TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;


-- 
-- TABLE: TRADE_ITM_CMPST_ASSCTN 
--

ALTER TABLE TRADE_ITM_CMPST_ASSCTN ADD 
    FOREIGN KEY (TRADE_ITM_CMPST_ASSCTN_TYP_ID)
    REFERENCES TRADE_ITM_CMPST_ASSCTN_TYP(TRADE_ITM_CMPST_ASSCTN_TYP_ID)
;

ALTER TABLE TRADE_ITM_CMPST_ASSCTN ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE TRADE_ITM_CMPST_ASSCTN ADD 
    FOREIGN KEY (MEMBER_TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;

ALTER TABLE TRADE_ITM_CMPST_ASSCTN ADD 
    FOREIGN KEY (PRNT_TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;


-- 
-- TABLE: TRADE_ITM_PRCHSNG_RSTRCTN 
--

ALTER TABLE TRADE_ITM_PRCHSNG_RSTRCTN ADD 
    FOREIGN KEY (PRCHSNG_RSTRCTN_TYP_ID)
    REFERENCES PRCHSNG_RSTRCTN_TYP(PRCHSNG_RSTRCTN_TYP_ID)
;

ALTER TABLE TRADE_ITM_PRCHSNG_RSTRCTN ADD 
    FOREIGN KEY (TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;




-- 
-- TABLE: TRADEITEMSTACKING 
--

ALTER TABLE TRADEITEMSTACKING ADD 
    FOREIGN KEY (TRADE_ITM_ID)
    REFERENCES TRADE_ITM(TRADE_ITM_ID)
;


-- 
-- TABLE: TRCR_CMMDTY_CTGRY 
--

ALTER TABLE TRCR_CMMDTY_CTGRY ADD 
    FOREIGN KEY (TRCR_CMMDTY_SET_ID)
    REFERENCES TRCR_CMMDTY_SET(TRCR_CMMDTY_SET_ID)
;


-- 
-- TABLE: TRCR_CMMDTY_SET 
--

ALTER TABLE TRCR_CMMDTY_SET ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE TRCR_CMMDTY_SET ADD 
    FOREIGN KEY (CNTRY_PRGRM_ID)
    REFERENCES CNTRY_PRGRM(CNTRY_PRGRM_ID)
;


-- 
-- TABLE: TRCR_CMMDTY_TYP 
--

ALTER TABLE TRCR_CMMDTY_TYP ADD 
    FOREIGN KEY (TRCR_CMMDTY_CTGRY_ID)
    REFERENCES TRCR_CMMDTY_CTGRY(TRCR_CMMDTY_CTGRY_ID)
;


-- 
-- TABLE: TSKORDR 
--

ALTER TABLE TSKORDR ADD 
    FOREIGN KEY (CNTRCT_AWD_ID)
    REFERENCES CNTRCT_AWD(CNTRCT_AWD_ID)
;

ALTER TABLE TSKORDR ADD 
    FOREIGN KEY (CNTRCT_AWD_GGRPHC_SCP_ID)
    REFERENCES CNTRCT_AWD_GGRPHC_SCP(CNTRCT_AWD_GGRPHC_SCP_ID)
;

ALTER TABLE TSKORDR ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;


-- 
-- TABLE: UNSPSC_CLSS 
--

ALTER TABLE UNSPSC_CLSS ADD 
    FOREIGN KEY (UNSPSC_FMLY_ID)
    REFERENCES UNSPSC_FMLY(UNSPSC_FMLY_ID)
;


-- 
-- TABLE: UNSPSC_CMMDTY 
--

ALTER TABLE UNSPSC_CMMDTY ADD 
    FOREIGN KEY (UNSPSC_CLSS_ID)
    REFERENCES UNSPSC_CLSS(UNSPSC_CLSS_ID)
;


-- 
-- TABLE: UNSPSC_FMLY 
--

ALTER TABLE UNSPSC_FMLY ADD 
    FOREIGN KEY (UNSPSC_SGMNT_ID)
    REFERENCES UNSPSC_SGMNT(UNSPSC_SGMNT_ID)
;


-- 
-- TABLE: USAID_PRDCT_CLSSFCTN_LVL_2 
--

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_2 ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_1_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_1(USAID_PRDCT_CLSSFCTN_LVL_1_ID)
;


-- 
-- TABLE: USAID_PRDCT_CLSSFCTN_LVL_3 
--

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_3 ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_2_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_2(USAID_PRDCT_CLSSFCTN_LVL_2_ID)
;


-- 
-- TABLE: USAID_PRDCT_CLSSFCTN_LVL_4 
--

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_4 ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_3_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_3(USAID_PRDCT_CLSSFCTN_LVL_3_ID)
;


-- 
-- TABLE: USAID_PRDCT_CLSSFCTN_LVL_5 
--

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (VOL_UOM_ID)
    REFERENCES VOL_UOM(VOL_UOM_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (WT_UOM_ID)
    REFERENCES WT_UOM(WT_UOM_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (DEPTH_LNR_UOM_ID)
    REFERENCES LNR_UOM(LNR_UOM_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (PRDCT_LN_ID)
    REFERENCES PRDCT_LN(PRDCT_LN_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (TRADE_ITM_UNIT_OF_ISSU_ID)
    REFERENCES TRADE_ITM_UNIT_OF_ISSU(TRADE_ITM_UNIT_OF_ISSU_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (ROUTEOFADMINISTRATION_ID)
    REFERENCES ROUTEOFADMINISTRATION(ROUTEOFADMINISTRATION_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (DRG_UOD_ID)
    REFERENCES DRG_UOD(DRG_UOD_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (DRG_FRMLRY_ID)
    REFERENCES DRG_FRMLRY(DRG_FRMLRY_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (DRG_UOP_ID)
    REFERENCES DRG_UOP(DRG_UOP_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (DRG_UOS_ID)
    REFERENCES DRG_UOS(DRG_UOS_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (ANTIMLRL_PRDCT_TYP_ID)
    REFERENCES ANTIMLRL_PRDCT_TYP(ANTIMLRL_PRDCT_TYP_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (ANTIMLRL_PRMRY_ACTV_INGRDNT_ID)
    REFERENCES ANTIMLRL_ACTV_INGRDNT(ANTIMLRL_ACTV_INGRDNT_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (ANTIMLRL_SCNDRY_ACTV_INGRDNT_ID)
    REFERENCES ANTIMLRL_ACTV_INGRDNT(ANTIMLRL_ACTV_INGRDNT_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (THRPTC_FD_FRTFCTN_TYP_ID)
    REFERENCES THRPTC_FD_FRTFCTN_TYP(THRPTC_FD_FRTFCTN_TYP_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (THRPTC_FD_TRTD_CNDTN_ID)
    REFERENCES THRPTC_FD_TRTD_CNDTN(THRPTC_FD_TRTD_CNDTN_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (LAB_SPPLY_PRDCT_TYP_ID)
    REFERENCES LAB_SPPLY_PRDCT_TYP(LAB_SPPLY_PRDCT_TYP_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (LAB_EQPMNT_PRDCT_TYP_ID)
    REFERENCES LAB_EQPMNT_PRDCT_TYP(LAB_EQPMNT_PRDCT_TYP_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (PRH_PRDCT_TYP_ID)
    REFERENCES PRH_PRDCT_TYP(PRH_PRDCT_TYP_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (PRH_CNTRCPTV_MTHD_ID)
    REFERENCES PRH_CNTRCPTV_MTHD(PRH_CNTRCPTV_MTHD_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (FML_CNDM_PRDCT_TYP_ID)
    REFERENCES FML_CNDM_PRDCT_TYP(FML_CNDM_PRDCT_TYP_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (CNDM_PRDCT_MTRL_ID)
    REFERENCES CNDM_PRDCT_MTRL(CNDM_PRDCT_MTRL_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (CNDM_PRDCT_SZ_ID)
    REFERENCES CNDM_PRDCT_SZ(CNDM_PRDCT_SZ_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (CNDM_PRDCT_FLVR_ID)
    REFERENCES CNDM_PRDCT_FLVR(CNDM_PRDCT_FLVR_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (CNDM_PRDCT_TXTR_ID)
    REFERENCES CNDM_PRDCT_TXTR(CNDM_PRDCT_TXTR_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (CNDM_PRDCT_NVLTY_TYP_ID)
    REFERENCES CNDM_PRDCT_NVLTY_TYP(CNDM_PRDCT_NVLTY_TYP_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (IUD_TYP_ID)
    REFERENCES IUD_TYP(IUD_TYP_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (IUD_ACTV_INGRDNT_ID)
    REFERENCES IUD_ACTV_INGRDNT(IUD_ACTV_INGRDNT_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (RTK_TGT_PTHGN_ID)
    REFERENCES RTK_TGT_PTHGN(RTK_TGT_PTHGN_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (SVC_PRDCT_TYP_ID)
    REFERENCES SVC_PRDCT_TYP(SVC_PRDCT_TYP_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (MED_DVC_PRDCT_TYP_ID)
    REFERENCES MED_DVC_PRDCT_TYP(MED_DVC_PRDCT_TYP_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (WDTH_LNR_UOM_ID)
    REFERENCES LNR_UOM(LNR_UOM_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (HT_LNR_UOM_ID)
    REFERENCES LNR_UOM(LNR_UOM_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (PRH_PRDCT_SPRMCD_ACTV_INGRDNT_ID)
    REFERENCES PRH_PRDCT_SPRMCD_ACTV_INGRDNT(PRH_PRDCT_SPRMCD_ACTV_INGRDNT_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (UNSPSC_CMMDTY_ID)
    REFERENCES UNSPSC_CMMDTY(UNSPSC_CMMDTY_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (DOSAGEFORMTYPE_ID)
    REFERENCES DOSAGEFORMTYPE(DOSAGEFORMTYPE_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (TRADE_ITM_BASE_UOM_ID)
    REFERENCES TRADE_ITM_BASE_UOM(TRADE_ITM_BASE_UOM_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (CNDM_PRDCT_SCNT_ID)
    REFERENCES CNDM_PRDCT_SCNT(CNDM_PRDCT_SCNT_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (CNDM_PRDCT_CLR_ID)
    REFERENCES CNDM_PRDCT_CLR(CNDM_PRDCT_CLR_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (GMDN_ID)
    REFERENCES GMDN(GMDN_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (UMDNS_ID)
    REFERENCES UMDNS(UMDNS_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (GPC_BRCK_ID)
    REFERENCES GPC_BRCK(GPC_BRCK_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (PRFRRD_GLBL_CLSSFCTN_SYSTM_ID)
    REFERENCES PRFRRD_GLBL_CLSSFCTN_SYSTM(PRFRRD_GLBL_CLSSFCTN_SYSTM_ID)
;

ALTER TABLE USAID_PRDCT_CLSSFCTN_LVL_5 ADD 
    FOREIGN KEY (USAID_PRDCT_CLSSFCTN_LVL_4_ID)
    REFERENCES USAID_PRDCT_CLSSFCTN_LVL_4(USAID_PRDCT_CLSSFCTN_LVL_4_ID)
;


-- 
-- TABLE: USAID_RDC 
--

ALTER TABLE USAID_RDC ADD 
    FOREIGN KEY (CNTRY_ID)
    REFERENCES CNTRY(CNTRY_ID)
;

ALTER TABLE USAID_RDC ADD 
    FOREIGN KEY (RGN_ID)
    REFERENCES RGN(RGN_ID)
;

Questions and Answers

The recording of the Q&A teleconference held on January 8, 2019 @ 11am EST and written responses to questions can be found here.