Skip to content

Instantly share code, notes, and snippets.

@diego3g
Created July 2, 2018 23:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diego3g/950c39267b8c671b673756eec4ab9dbf to your computer and use it in GitHub Desktop.
Save diego3g/950c39267b8c671b673756eec4ab9dbf to your computer and use it in GitHub Desktop.
'use strict'
const Model = use('Model')
const Hash = use('Hash')
class User extends Model {
// código existente
properties () {
return this.hasMany('App/Models/Property')
}
}
module.exports = User
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment