-- ====================================================================
-- IDS_DATA Template Table
-- ====================================================================
-- Purpose: Template table for IDS weather data files
-- ====================================================================

CREATE TABLE CT_ET_TEMPLATES.IDS_DATA(
    STATION VARCHAR2(2000),
    DATE VARCHAR2(2000),
    LATITUDE VARCHAR2(2000),
    LONGITUDE VARCHAR2(2000),
    ELEVATION VARCHAR2(2000),
    NAME VARCHAR2(2000),
    TEMP VARCHAR2(2000),
    TEMP_ATTRIBUTES VARCHAR2(2000),
    DEWP VARCHAR2(2000),
    DEWP_ATTRIBUTES VARCHAR2(2000),
    SLP VARCHAR2(2000),
    SLP_ATTRIBUTES VARCHAR2(2000),
    STP VARCHAR2(2000),
    STP_ATTRIBUTES VARCHAR2(2000),
    VISIB VARCHAR2(2000),
    VISIB_ATTRIBUTES VARCHAR2(2000),
    WDSP VARCHAR2(2000),
    WDSP_ATTRIBUTES VARCHAR2(2000),
    MXSPD VARCHAR2(2000),
    GUST VARCHAR2(2000),
    MAX VARCHAR2(2000),
    MAX_ATTRIBUTES VARCHAR2(2000),
    MIN VARCHAR2(2000),
    MIN_ATTRIBUTES VARCHAR2(2000),
    PRCP VARCHAR2(2000),
    PRCP_ATTRIBUTES VARCHAR2(2000),
    SNDP VARCHAR2(2000),
    FRSHTT VARCHAR2(2000)
);

-- Grant access to CT_MRDS for FILE_MANAGER operations
GRANT SELECT ON CT_ET_TEMPLATES.IDS_DATA TO CT_MRDS;