-- CREATING THE CONFIG TABLE
CREATE TABLE IF NOT EXISTS STG.CONTRACT_CONFIG (
    CONTRACT_NAME VARCHAR,
    BATCH_ID VARCHAR,
    UNIQUE_KEY BOOLEAN,
    UNIQUE_KEY_OVERRIDE BOOLEAN DEFAULT FALSE,    
    PRICING_BEFORE_CARVEOUTS BOOLEAN,
    PRICING_BEFORE_CARVEOUTS_OVERRIDE BOOLEAN DEFAULT FALSE,
    CONTRACT_RELATED BOOLEAN,
    CONTRACT_RELATED_OVERRIDE BOOLEAN DEFAULT FALSE,
    PROVIDER BOOLEAN,
    PROVIDER_OVERRIDE BOOLEAN DEFAULT FALSE,
    TIMELINE BOOLEAN,
    TIMELINE_OVERRIDE BOOLEAN DEFAULT FALSE,
    CARVEOUT_INDICATOR BOOLEAN,
    CARVEOUT_INDICATOR_OVERRIDE BOOLEAN DEFAULT FALSE,
    CARVEOUT_METHODOLOGY BOOLEAN
    CARVEOUT_METHODOLOGY_OVERRIDE BOOLEAN DEFAULT FALSE,
    REQUEST_DATETIME DATETIME,
    REQUEST_USER VARCHAR,
    OVERRIDE_DATETIME DATETIME,
    LATEST_FLAG BOOLEAN DEFAULT TRUE,
    PIPELINE_KICKOFF_DATETIME DATETIME,
    REQUEST_DATETIME DATETIME DEFAULT CURRENT_TIMESTAMP(), 
    REQUEST_USER VARCHAR,
    OVERRIDE_DATETIME DATETIME DEFAULT NULL,
    LATEST_FLAG BOOLEAN DEFAULT TRUE,
    PIPELINE_KICKOFF_DATETIME DATETIME   
);