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

CREATE TABLE CT_ET_TEMPLATES.ODS_LM_STANDING_FACILITIES (
   REFERENCE_DATE VARCHAR2(2000),
   VERSION_NUMBER VARCHAR2(2000),
   MFI_CODE VARCHAR2(2000),
   BANK_NAME VARCHAR2(2000),
   MARGINAL_LANDING VARCHAR2(2000),
   DEPOSIT_FACILITY VARCHAR2(2000),
   COUNTRY  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 TO ODS;

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