UNPKG

474 BTypeScriptView Raw
1import { Model, ModelOptions } from 'sequelize';
2export interface TableOptions<M extends Model = Model> extends ModelOptions<M> {
3 modelName?: string;
4 /**
5 * Enable optimistic locking. When enabled, sequelize will add a version count attribute
6 * to the model and throw an OptimisticLockingError error when stale instances are saved.
7 * Set to true or a string with the attribute name you want to use to enable.
8 */
9 version?: boolean | string;
10}