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

Commit 5e12ba98 by slamkajs

Added tableName override for models.

1 parent d2fc5019
Showing with 5 additions and 1 deletions
...@@ -19,7 +19,11 @@ module.exports = (function() { ...@@ -19,7 +19,11 @@ module.exports = (function() {
}, options || {}) }, options || {})
this.name = name this.name = name
this.tableName = this.options.freezeTableName ? name : Utils.pluralize(name) if(!this.options.tableName) {
this.tableName = this.options.freezeTableName ? name : Utils.pluralize(name)
} else {
this.tableName = this.options.tableName
}
this.rawAttributes = attributes this.rawAttributes = attributes
this.daoFactoryManager = null // defined in init function this.daoFactoryManager = null // defined in init function
this.associations = {} this.associations = {}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!