sqlalchemy on delete set null code example
Example: sqlalchemy on delete set null
category_id = db.Column(db.Integer, db.ForeignKey('category.id', ondelete='SET NULL'))
category_id = db.Column(db.Integer, db.ForeignKey('category.id', ondelete='SET NULL'))