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/Link.js
Sagi Dayan d7c9359ef2 Basic logic
- DB migrations
 - Login/Register flows
 - Dockerfile
 - Layouts, Partials, Components
 - Sass
 - Bulma.io
 - sqlite
2020-01-18 15:46:06 -05:00

16 lines
296 B
JavaScript

'use strict'
/** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */
const Model = use('Model')
class Link extends Model {
users(){
return this.hasMany('App/Models/User')
}
children() {
return this.hasMany('App/Models/Child')
}
}
module.exports = Link