12 lines
219 B
JavaScript
12 lines
219 B
JavaScript
'use strict'
|
|
|
|
/** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */
|
|
const Model = use('Model')
|
|
|
|
class Book extends Model {
|
|
user() {
|
|
return this.belongsTo('App/Models/User');
|
|
}
|
|
}
|
|
|
|
module.exports = Book
|