create flat schema fields object