Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion app/config/db.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,17 @@ const sequelize = new Sequelize(env.database, env.username, env.password, {
logging: dbQueryLog,
define: {
schema: 'dbo',
timestamps: false,
// Match the de facto pattern: every model in app/models/
// already sets `timestamps: true` explicitly (the 20260520
// migration added `createdAt` / `updatedAt` columns to every
// domain table + the auth tables, and the model overrides
// were added at the same time). The previous global default
// of `false` was misleading because no model honoured it,
// and a future model that forgot the explicit override would
// silently skip the timestamps Sequelize otherwise auto-
// populates. Flip the default so new models inherit the
// right behaviour without ceremony.
timestamps: true,
},
});

Expand Down