Added constraint creation for foreign key