ALTER TABLE fos_user_headquarter
ADD CONSTRAINT user_id_headquarter_id UNIQUE (user_id,headquarter_id);