不要怂,就是干,撸起袖子干!

Commit ee5446f3 by overlookmotel

Sequelize.prototype.Sequelize

1 parent 498aa027
Showing with 7 additions and 0 deletions
...@@ -203,6 +203,13 @@ module.exports = (function() { ...@@ -203,6 +203,13 @@ module.exports = (function() {
Sequelize.options = {hooks: {}}; Sequelize.options = {hooks: {}};
/** /**
* A reference to Sequelize constructor from sequelize. Useful for accessing DataTypes, Errors etc.
* @property Sequelize
* @see {Sequelize}
*/
Sequelize.prototype.Sequelize = Sequelize;
/**
* A reference to sequelize utilities. Most users will not need to use these utils directly. However, you might want to use `Sequelize.Utils._`, which is a reference to the lodash library, if you don't already have it imported in your project. * A reference to sequelize utilities. Most users will not need to use these utils directly. However, you might want to use `Sequelize.Utils._`, which is a reference to the lodash library, if you don't already have it imported in your project.
* @property Utils * @property Utils
* @see {Utils} * @see {Utils}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!