2020-01-18 20:46:06 +00:00
|
|
|
'use strict'
|
|
|
|
|
|
|
|
/** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */
|
|
|
|
const Model = use('Model')
|
|
|
|
|
|
|
|
class Child extends Model {
|
2020-03-17 22:16:34 +00:00
|
|
|
// get table() {
|
|
|
|
// return 'children';
|
|
|
|
// }
|
|
|
|
static get dates() {
|
|
|
|
return super.dates.concat(['dob'])
|
|
|
|
}
|
|
|
|
links() {
|
|
|
|
return this.hasMany('App/Models/Link')
|
|
|
|
}
|
2020-01-18 20:46:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = Child
|