peewee.IntegrityError: NOT NULL constraint failed
SOLVED!

I solved the problem. Nothing was wrong with the code. Just needed to remigrate my database. For those experiencing similar problem, script below tends to work:
```
db.connect()

models = [
    User
]

db.drop_tables(models)

db.create_tables(models)
```
`db` is an instance of peewee database initialization.
I want to set some fields to be nullable in User Model

Here is my base model:
```
db = SqliteDatabase(DBConfig.DB_NAME)

class BaseModel(Model):
    class Meta:
        database = db
```

Here is my User model:
```
class User(BaseModel):
    id = BigAutoField()
    name = CharField()
    email = CharField(unique=True)
    mobile_number = CharField(max_length=20, unique=True)
    avatar = CharField(null=True, default=None)
    two_factor_secret = CharField(null=True, default=None, unique=True)
    created_at = DateTimeField(default=datetime.now)
```

Here is what I tried to create a user  and where the said problem is occurring:
```
user = User.create(name="Test", email="test@email.com", mobile_number="9876543210")
```

If I pass avatar and two_factor_secret, the model works without any problem.

The error I get while not passing avatar and tow_factor_secret values:
```
peewee.IntegrityError: NOT NULL constraint failed: user.avatar
 ```

If any further detail is required, I am happy to provide it.