sequelize-typescript
Version:
Decorators and some other extras for sequelize (v3 + v4)
12 lines (11 loc) • 484 B
TypeScript
/// <reference types="sequelize" />
import { DefineOptions } from "sequelize";
export interface IDefineOptions extends DefineOptions<any> {
modelName?: string;
/**
* 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.
*/
version?: boolean | string;
}