Added unique constraint definition for model