Add foreign keys to schemas