可以使用SQL语句添加啊
ALTER TABLE table_name ADD ( CONSTRAINT constraint_name FOREIGN KEY (foreign_id) REFERENCES references_table(reference_id));