Open wondie opened 4 years ago
Hi,
Use syncView
function to create view
const Sequelize = require('sequelize-views-support');
const view = require('./models/VwBackscattering');
const VwBackscattering = view(db, Sequelize.DataTypes)
VwBackscattering.syncView().then(() => {
console.log('VwBackscattering table created');
});
module.exports = VwBackscattering;
I couldn't create a view. Below is my code.
Model.js
index.js