ALTER TABLE user_config ADD CONSTRAINT user_config_pk PRIMARY KEY ( id );

ALTER TABLE user_config ADD CONSTRAINT user_config_user_tipo_uk UNIQUE ( user_id,
                                                                         tipo );