     created_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
     updated_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
     parameter_type_id INTEGER NOT NULL REFERENCES base.parameter_type(id),
-    indicator_id INTEGER NOT NULL REFERENCES base.indicator(id)
+    indicator_id INTEGER NOT NULL REFERENCES base.indicator(id),
+    CONSTRAINT parameter_unicity UNIQUE (indicator_id, parameter_type_id)
 );
 
 COMMENT ON TABLE base.parameter IS

/*Create table indicator*/
CREATE TABLE base.indicator (
    id SERIAL PRIMARY KEY,
    indicator TEXT NOT NULL UNIQUE,
    description TEXT,
    execution_order INTEGER DEFAULT 0,
    flag_active BOOLEAN DEFAULT FALSE,

ON base.data_source_type FOR EACH ROW EXECUTE PROCEDURE
base.update_updated_date_column();

INSERT INTO base.data_source_type (name) VALUES
('Hive'),
('Impala'),
('Microsoft SQL Server'),
