摘要: 在app/model/下创建表模型: module.exports = app => { const { STRING, INTEGER, DATE } = app.Sequelize; const User = app.model.define('user', { username: STRING 阅读全文
posted @ 2021-08-11 17:45 zezhou222 阅读(430) 评论(0) 推荐(0)
摘要: 冲突关联: Cyclic dependency found. Users is dependent of itself // A关联了B,B关联了A 遇到的场景: 用户表关联角色,角色关联用户(表示是哪个用户创建的) sequelize创建表时候遇到的问题。 解决方式: # 这个必须加,sequel 阅读全文
posted @ 2021-08-11 17:31 zezhou222 阅读(280) 评论(0) 推荐(0)