You have to set a default value otherwise None/NULL is used:
is_active = Column(Boolean, unique=False, default=True)
You wanted to do this in __init__ but you used is_active = True (a local variable) instead of self.is_active = True.
You have to set a default value otherwise None/NULL is used:
is_active = Column(Boolean, unique=False, default=True)
You wanted to do this in __init__ but you used is_active = True (a local variable) instead of self.is_active = True.