[model] set optinal fields to default values.