Generates models structure.