Generating product model with validations