Hi Hitarth1, you need to define a model as a paranoid. You can do that by passing theparanoid: true option when you're defining your model. And make sure timestamps is not false. Paranoid needs timestamp to work.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
How to perform soft delete in sequelize?
don't forget to add deletedAt column
Hi Hitarth1, you need to define a model as a paranoid. You can do that by passing the
paranoid: true
option when you're defining your model. And make suretimestamps
is not false. Paranoid needs timestamp to work.