Unexpected error: column "createdAt" does not exist

Hey @timothyarmes,

Sequelize handle createdAt and updatedAt by default, and so does FA. You can disable these column manually using something like

sequelize.define('user', { /* bla */ }, {

  // don't add the timestamp attributes (updatedAt, createdAt)
  timestamps: false,

  // If don't want createdAt
  createdAt: false,

  // If don't want updatedAt
  updatedAt: false,

  // your other configuration here

});

(See node.js - disable updatedAt (update date) field in sequelize.js - Stack Overflow)

For your second question, I think Smart fields/Smart relationships is what you are looking for.

Let me know if that helps

1 Like