-- ====================================================================
-- A_DEVO_REPLICA_MGMT_RAR Table Definition
-- ====================================================================
-- Purpose: RAR replication management configuration table
-- Source: MARS-770 install_package_MarsGeneralRelease_MARS770_tables.sql
-- ====================================================================

CREATE TABLE "CT_MRDS"."A_DEVO_REPLICA_MGMT_RAR" AS
SELECT OWNER, 
    TABLE_NAME, 
    TABLE_ALIAS, 
    CAST(NULL AS VARCHAR2(200)) AS LAST_RUN_ID,
    CAST(NULL AS DATE) AS LAST_START_TIME,
    CAST(NULL AS DATE) AS LAST_END_TIME,
    CAST(NULL AS VARCHAR2(200)) AS LAST_STATUS, 
    SAVE_MODE,
    BUCKET_COLUMN AS PARTITION_COLUMN, 
    NUMBER_OF_BUCKETS AS MAX_THREADS,
    CAST(NULL AS NUMBER(28,10)) AS LAST_PROCESSED_KEY
FROM CT_REF.RAR_ON_DISC_REPLICA_MGMT;