17 lines
296 B
JavaScript
17 lines
296 B
JavaScript
|
'use strict'
|
||
|
|
||
|
/** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */
|
||
|
const Model = use('Model')
|
||
|
|
||
|
class Link extends Model {
|
||
|
users(){
|
||
|
return this.hasMany('App/Models/User')
|
||
|
}
|
||
|
children() {
|
||
|
return this.hasMany('App/Models/Child')
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
module.exports = Link
|