AttributeError: module ‘sqlalchemy’ has no attribute ‘NullType’

Solution
date = db.Column(datetime.now().strftime('%Y-%m-%d %H:%M:%S'), nullable=False)
date = db.Column(db.DateTime, nullable=False)