Add foreign keys in the metadata editor