This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
seepur/app/Models/Book.js
2020-04-13 20:56:04 -04:00

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