📜  adonis 多对多 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:29.086000             🧑  作者: Mango

代码示例1
@manyToMany(() => Skill, {
  localKey: 'id',
  pivotForeignKey: 'user_id',
  relatedKey: 'id',
  pivotRelatedForeignKey: 'skill_id',
})
public skills: ManyToMany