📜  https:sequelize.org v4 手动安装getting-started.html - 代码示例

📅  最后修改于: 2022-03-11 14:57:13.034000             🧑  作者: Mango

代码示例6
const sequelize = new Sequelize('connectionUri', {
  define: {
    timestamps: false // true by default
  }
});

const User = sequelize.define('user', {}); // timestamps is false by default
const Post = sequelize.define('post', {}, {
  timestamps: true // timestamps will now be true
});