adds preset_attributes and mandatory_attributes option to the model generator