conditional columns
is there a better way of doing this?
if the userType column equals to 'artist', the nickname column should be notNull(), but in case of 'customer' it should be null
also, the firstName, lastName and the city columns should be filled out before isSetupComplete column can be set to true
below is what i came up with
open to tips and suggestions, thanks in advance!
0 Replies