Typography

活版印字


  • Home
  • Archive
  • Categories
  • Tags
  •  

© 2020 alincode

Theme Typography by Makito

Proudly published with Hexo

把 Sequelize 預設的駝峰命名改成底線命名

Posted at 2016-07-20

camelCased:駝峰命名
underscored:底線命名

1
2
3
4
5
6
7
8
options: {
tableName: 'your_table_name',
classMethods: {},
instanceMethods: {},
hooks: {},
paranoid: true,
underscored: true // ===> 這行
}

Share 

 Previous post: Sequelize 多對多設定範例 Next post: lodash 常見功能(1) 

© 2020 alincode

Theme Typography by Makito

Proudly published with Hexo