npm init -y
npm install express mysql2 sequelize -S
npm install sequelize-cli -S
npm i nodemon -D
npm i body-parser -S
npx sequelize init
// 修改config.json后,创建模型文件
npx sequelize model:generate --name Todo --attributes name:string,deadline:date,content:string
npx sequelize db:migrate
网友评论