Alter Table tb_user_account Add Constraint accountId Foreign Key (accountId) References tb_vir_account (id); Alter Table tb_vir_account Add Constraint virId Foreign Key (virId) References tb_virtualarchitecture (id);