diff --git a/types/sequelize/index.d.ts b/types/sequelize/index.d.ts index ecbdba3602..9c3ca8474e 100644 --- a/types/sequelize/index.d.ts +++ b/types/sequelize/index.d.ts @@ -4672,6 +4672,20 @@ declare namespace sequelize { } + /** + * Interface for Attributes provided for a column + * + * @see Sequelize.define + */ + type DefineModelAttributes = { + + /** + * The description of a database column for model + */ + [P in keyof T]: string | DataTypeAbstract | DefineAttributeColumnOptions; + + } + /** * Interface for query options * @@ -5976,7 +5990,7 @@ declare namespace sequelize { * @param options These options are merged with the default define options provided to the Sequelize * constructor */ - define(modelName: string, attributes: DefineAttributes, + define(modelName: string, attributes: DefineModelAttributes, options?: DefineOptions): Model; /**