1 2 3 4 5 6 7 8 9 10 11 12
'use strict' /** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */ const Model = use('Model') class Service extends Model { user() { return this.belongsTo('App/Models/User', 'userId', 'id') } } module.exports = Service