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

Commit 380fbd5a by Adam Back

Backport data types under DataTypes namespace to v3.

1 parent 93304e73
Showing with 6 additions and 0 deletions
...@@ -300,6 +300,12 @@ Sequelize.prototype.Validator = Sequelize.Validator = require('validator'); ...@@ -300,6 +300,12 @@ Sequelize.prototype.Validator = Sequelize.Validator = require('validator');
Sequelize.prototype.Model = Sequelize.Model = Model; Sequelize.prototype.Model = Sequelize.Model = Model;
/**
* A reference to the sequelize class holding commonly used data types. The datatypes are used when defining a new model using `sequelize.define`
* @property DataTypes
*/
Sequelize.DataTypes = DataTypes;
for (var dataType in DataTypes) { for (var dataType in DataTypes) {
Sequelize[dataType] = DataTypes[dataType]; Sequelize[dataType] = DataTypes[dataType];
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!