-- ====================================================================
-- A_SOURCE Table
-- ====================================================================
-- Purpose: Store source system definitions
-- ====================================================================

CREATE TABLE CT_MRDS.A_SOURCE (
    A_SOURCE_KEY VARCHAR2(30), 
    SOURCE_NAME VARCHAR2(200),
    CONSTRAINT A_SOURCE_PK PRIMARY KEY (A_SOURCE_KEY)
) TABLESPACE "DATA";

-- Primary key index (from production export)
CREATE UNIQUE INDEX "CT_MRDS"."A_SOURCE_PK" 
ON "CT_MRDS"."A_SOURCE" ("A_SOURCE_KEY") 
TABLESPACE "DATA";

GRANT SELECT, INSERT, UPDATE, DELETE ON CT_MRDS.A_SOURCE TO MRDS_LOADER_ROLE;