Add foreign key between source and repository