1var Bar = sequelize.define('bar', { /* bla */ }, {
2 // don't add the timestamp attributes (updatedAt, createdAt)
3 timestamps: false,
4
5 // don't delete database entries but set the newly added attribute deletedAt
6 // to the current date (when deletion was done). paranoid will only work if
7 // timestamps are enabled
8 paranoid: true,
9
10 // don't use camelcase for automatically added attributes but underscore style
11 // so updatedAt will be updated_at
12 underscored: true,
13
14 // disable the modification of table names; By default, sequelize will automatically
15 // transform all passed model names (first parameter of define) into plural.
16 // if you don't want that, set the following
17 freezeTableName: true,
18
19 // define the table's name
20 tableName: 'my_very_custom_table_name'
21})
22