ALTER TABLE acc_trans ADD FOREIGN KEY trans_id REFERENCES transactions (id);