constPost=db.define('Post',{id:{type:Sequilize.INTEGER,autoIncrement:true,primaryKey:true},name:{type:Sequilize.STRING,allowNull:false},});db.sync().then(()=>{console.log('Database has been created');}).catch((err)=>{console.log('error creating database '+err);})exports=module.exports={User}nodedb.js
Thank You For Reading
Top comments (0)
Subscribe
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)