I am using Postgres and Sequelize with my node app.
I have set up the models and allows Sequalize to produce the tables. I now want to move the data across using something like this.
insert into archive (id,title) select id, title from old_archives;
However, I am getting null errors as Sequelize uses createdAt and updatedAt columns. Is there a way around this?
Error is
ERROR: null value in column "createdAt" violates not-null constraint DETAIL: Failing row contains (2, null, Dewerstone Rocks, null, null, null, null, null, null, null, null).