Hooks

Hooks (also known as lifecycle events), are functions which are called before and after calls in sequelize are executed. For example, if you want to always set a value on a model before saving it, you can add a beforeUpdate hook.

Note:You can't use hooks with instances. Hooks are used with models.

For a full list of hooks, see Hooks file.