Advertisement
rizalprasetya

Model.js

Jan 16th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'use strict'
  2.  
  3. /** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */
  4. const Model = use('Model')
  5.  
  6. class Siswa extends Model {
  7.     orang_tua(){
  8.         return this.belongsTo('App/Models/OrangTua','id','id')
  9.     }
  10. }
  11.  
  12. module.exports = Siswa
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement