aboutsummaryrefslogtreecommitdiffstats
path: root/app/Models/Service.js
blob: 0ca72fd18aed941f2c81a346698a8051db106b5a (plain) (blame)
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