'how do i tell that an instance in sequelize has never been updated

I have node js application where I need to do something if an instance in sequelize has been updated before or delete if the instance has never been updated. any ideas



Solution 1:[1]

You can use hooks in sequalize

here you can read about the hooks.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 gguney