
-- @AutoRun
-- drop table rs_factor_lin;



CREATE TABLE rs_factor_lin (
    object_id numeric(12) NOT NULL ,
    object_last_updated_date timestamp DEFAULT NOW() NOT NULL ,
    object_created_date timestamp DEFAULT NOW() NOT NULL
    ,
    reverse_score_flag char(1) NULL,
    factor_number numeric(12)  NULL,
    quest_number numeric(12)  NULL
    );



ALTER TABLE rs_factor_lin ADD    
    CONSTRAINT pk_rs_factor_lin PRIMARY KEY 
    (
        object_id
    ) ;
    
    
    
    CREATE INDEX idx_rs_factor_lin_factor_number 
    ON rs_factor_lin (factor_number);

    CREATE INDEX idx_rs_factor_lin_quest_number 
    ON rs_factor_lin (quest_number);
