Generates datamodel.