generate Order model