aboutsummaryrefslogtreecommitdiffstats
path: root/app/Models/User.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/User.js')
-rw-r--r--app/Models/User.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Models/User.js b/app/Models/User.js
index 0bb1547..c9a680a 100644
--- a/app/Models/User.js
+++ b/app/Models/User.js
@@ -38,6 +38,10 @@ class User extends Model {
38 services () { 38 services () {
39 return this.hasMany('App/Models/Service', 'id', 'userId') 39 return this.hasMany('App/Models/Service', 'id', 'userId')
40 } 40 }
41
42 workspaces () {
43 return this.hasMany('App/Models/Workspace', 'id', 'userId')
44 }
41} 45}
42 46
43module.exports = User 47module.exports = User