generated order model