📜  adonisjs 多对多创建支点 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:55.104000             🧑  作者: Mango

代码示例1
import { BaseModel, manyToMany, ManyToMany } from '@ioc:Adonis/Lucid/Orm'
import Project from 'App/Models/Project'

class User extends BaseModel {
  @manyToMany(() => Project)
  public projects: ManyToMany
}