belongsToMany(Project, { as: { singular: 'task', plural: 'tasks' }}) 如果你希望总是使用相同的别名,那么可以定义模型时指定: 我正在使用sequelize-typescript库 ...
確定! 回上一頁