[models] Auto-generate field order.