Sequelize | 2. 模型 - 删除表
2021-01-07 本文已影响0人
ShadowFieldEric
删除某张表
(async () => {
await UserModel.drop();
})()
删除数据库所有表
(async () => {
await sequelize.drop();
})
删除某张表
(async () => {
await UserModel.drop();
})()
删除数据库所有表
(async () => {
await sequelize.drop();
})