Add uniqueness validation and index on version_number