-- ====================================================================
-- ODS_LM_STANDING_FACILITIES_HEADER Template Table
-- ====================================================================
-- Purpose: Template table for Liquidity Management Standing Facilities Header data
-- ====================================================================

CREATE TABLE CT_ET_TEMPLATES.ODS_LM_STANDING_FACILITIES_HEADER (
   REFERENCE_DATE VARCHAR2(2000),
   VERSION_NUMBER VARCHAR2(2000),
   MARGINAL_LENDINGS_BS_TOTAL VARCHAR2(2000),
   DEPOSIT_FACILITY_BS_TOTAL VARCHAR2(2000),
   MARGINAL_LENDINGS_SF_TOTAL VARCHAR2(2000),
   DEPOSIT_FACILITY_SF_TOTAL VARCHAR2(2000),
   A_WORKFLOW_HISTORY_ID VARCHAR2(2000)
);

-- Grant access to ODS schema for external table creation
GRANT SELECT ON CT_ET_TEMPLATES.ODS_LM_STANDING_FACILITIES_HEADER TO ODS;

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