poppinss / indicative

Indicative is a simple yet powerful data validator for Node.js and browsers. It makes it so simple to write async validations on nested set of data.
https://indicative.adonisjs.com/
MIT License
417 stars 52 forks source link

Unique multiple columns #202

Closed ivanguimam closed 5 years ago

ivanguimam commented 6 years ago

How do I paste a composite key as unique?

Ex: Email + platform_id

thetutlage commented 6 years ago

Indicative doesn't have any unique rule. It is added by the adonis-validator (if you are using AdonisJs), for now, it only allows a single field. However, you can add your own custom rule.