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

Commit 45ec1a22 by Bagus Budi Cahyono Committed by papb

docs(naming-strategies): fix user model name user (#12576)

1 parent b0e6f039
Showing with 1 additions and 1 deletions
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
Sequelize provides the `underscored` option for a model. When `true`, this option will set the `field` option on all attributes to the [snake_case](https://en.wikipedia.org/wiki/Snake_case) version of its name. This also applies to foreign keys automatically generated by associations and other automatically generated fields. Example: Sequelize provides the `underscored` option for a model. When `true`, this option will set the `field` option on all attributes to the [snake_case](https://en.wikipedia.org/wiki/Snake_case) version of its name. This also applies to foreign keys automatically generated by associations and other automatically generated fields. Example:
```js ```js
const User = sequelize.define('task', { username: Sequelize.STRING }, { const User = sequelize.define('user', { username: Sequelize.STRING }, {
underscored: true underscored: true
}); });
const Task = sequelize.define('task', { title: Sequelize.STRING }, { const Task = sequelize.define('task', { title: Sequelize.STRING }, {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!