momi-foundation-coding / nodejs-api-cli

This is a scaffold for generating new API-based application for NodeJS and its frameworks such as Express, kemboijs, koa, AdonisJs etc.
http://www.kemboijs.org/
MIT License
10 stars 13 forks source link

change Successfully created User tables tables to Successfully created User table #102

Open ezkemboi opened 4 years ago

ezkemboi commented 4 years ago

Describe the bug Remove one tables inside the src/scripts/createdb.js when the app created makes use of postgreSQL

export default User.sync().then(() => {
  console.log('Successfully created User tables tables')
}).catch(error => {
  console.log('The error: ', error)
})

To Reproduce Steps to reproduce the behavior:

  1. Generate a new app choosing the database as postgres & ORM as sequelize

Expected behavior

export default User.sync().then(() => {
  console.log('Successfully created User table')
}).catch(error => {
  console.log('The error: ', error)
})

Screenshots N/A

Desktop (please complete the following information): N/A Smartphone (please complete the following information): N/A Additional context N/A

ezkemboi commented 4 years ago

It also needs to make a modification to allow more than one export. In an app, it can have many tables.

Albert-Osei commented 1 year ago

Seems this issue should be closed since the required change has already been implemented.