Created
July 2, 2018 23:17
-
-
Save diego3g/b1205d32f93c4b357fc79db1d7a80eda to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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