Skip to content

Instantly share code, notes, and snippets.

@diego3g
Created July 2, 2018 23:17
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/b1205d32f93c4b357fc79db1d7a80eda to your computer and use it in GitHub Desktop.
Save diego3g/b1205d32f93c4b357fc79db1d7a80eda to your computer and use it in GitHub Desktop.
'use strict'
const Model = use('Model')
class Property extends Model {
user () {
return this.belongsTo('App/Models/User')
}
images () {
return this.hasMany('App/Models/Image')
}
}
module.exports = Property
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment