数据库插件
This commit is contained in:
@@ -42,7 +42,7 @@ module.exports = async (app) => {
|
||||
const api = new Api(sequelize, sequelize.models)
|
||||
app.db = api
|
||||
// console.log(api);
|
||||
console.log(await app.db.table("User").find());
|
||||
// console.log(await app.db.table("User").find());
|
||||
|
||||
//等待所有插件载入完成后,自动更新数据库字段
|
||||
//把所有模型的md5值存入到redis里面去,哪个文件的md5有变动就更新哪个表的字段.
|
||||
|
||||
Reference in New Issue
Block a user