
ALTER TABLE finance.goals_transactions
    ADD CONSTRAINT uc_goals_transactions_transactions UNIQUE (goal_id);