把 Sequelize 預設的駝峰命名改成底線命名
Posted at 2016-07-20
camelCased:駝峰命名underscored:底線命名
12345678
options: { tableName: 'your_table_name', classMethods: {}, instanceMethods: {}, hooks: {}, paranoid: true, underscored: true // ===> 這行}
Previous post: Sequelize 多對多設定範例 Next post: lodash 常見功能(1)