You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
http://docs.sequelizejs.com/manual/tutorial/models-definition.html
```
// Enable optimistic locking. When enabled, sequelize will add a version count attribute
// to the model and throw an OptimisticLockingError error when stale instances are saved.
// Set to true or a string with the attribute name you want to use to enable.
```
IDefineOptions: as commented above -`Set to true or a string`.
Model.d.ts: if a user sets the version in IDefineOptions to a string it is probably to free the version field for something else, in that case it should not be forced to a number.
0 commit comments