Add indexes for ordering versions
Add validations for plugin model