I would like to add a unique insensitive constraint to the following model using peewee orm with a sqlite database
import peewee as p
db = p.SqliteDatabase(':memory:')
class Player(p.Model):
name = p.CharField()
class Meta:
database = db
I would like to prevent adding 'joe' and 'Joe' as player name in the table. As the field is case sensitive, a unique constraint is not enough.
Thank you for your ideas !