get schema for inserted foreach ops