is there another REGEX way (or another way) to ensure that a model class field would be unique? (it is not a key, or at least not declared as a key, is shoulb be a simple C
The normal way to make a single field unique is to use the unique argument to the field constructor.