I am learning sequelize js and I was wondering if there is a way to define a Model and have it get all the table columns automatically ?
We have a huge dataset and the table that I will base the Model on, has 200 columns. Even if I need only 50 from the 200 columns, it is still a lot.
Is there a way to define the Model and it will automatically get all the columns with their names, instead of me defining each columns by hand ? Something like
const HugeData = db.define('likeALotOfData', {
//get all columns
})
If this makes any difference, I am using mssql and tedious
Thanks