Created
January 19, 2019 12:56
-
-
Save dextermb/0bff6647748f2da6ed0be25642143135 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const Model = require('@ninetynine/node-models') | |
class User extends Model { | |
get fillables () { | |
return [ | |
'github_id', | |
'github_token', | |
'login', | |
'email', | |
'name', | |
'bio', | |
'avatar_url' | |
] | |
} | |
get hidden () { | |
return [ | |
'github_token', | |
'email' | |
] | |
} | |
} | |
module.exports = User |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment