You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to request validation for unique of combination certain columns for create and update
example: firstname, middlename, lastname and suffixname (generational suffixes) should be unique
firstname => required | unique with middlename, lastname and suffixname,
middlename => not required | unique with firstname, lastname and suffixname
lastname => required | unique with firstname, middlename and suffixname
suffixname => not required | unique with firstname, middlename and lastname
May be a keyword like 'uniqueWith: [table1.column1, table1.column2]' is good.
And adding unique combination with other table is great
'uniqueWith: [table1.column1, table1.column2, table2.column1, table2.column2]'
And adding unique combination with other database is also great
'uniqueWith: [db1.table1.column1, db2.table1.column1, db3.table2.column1, db4.table2.column1]'
This is just my ideas and I love to see it in Adonisjs
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to request validation for unique of combination certain columns for create and update
example: firstname, middlename, lastname and suffixname (generational suffixes) should be unique
firstname => required | unique with middlename, lastname and suffixname,
middlename => not required | unique with firstname, lastname and suffixname
lastname => required | unique with firstname, middlename and suffixname
suffixname => not required | unique with firstname, middlename and lastname
May be a keyword like 'uniqueWith: [table1.column1, table1.column2]' is good.
And adding unique combination with other table is great
'uniqueWith: [table1.column1, table1.column2, table2.column1, table2.column2]'
And adding unique combination with other database is also great
'uniqueWith: [db1.table1.column1, db2.table1.column1, db3.table2.column1, db4.table2.column1]'
This is just my ideas and I love to see it in Adonisjs
Beta Was this translation helpful? Give feedback.
All reactions