Commit ad680a48 authored by Clive Makamara's avatar Clive Makamara

Test WakaTime

parent 7d14912d
...@@ -5,7 +5,12 @@ var settingCollection = Waterline.Collection.extend({ ...@@ -5,7 +5,12 @@ var settingCollection = Waterline.Collection.extend({
connection: 'default', connection: 'default',
attributes: { attributes: {
name: 'string', name: 'string',
value: 'string' value: 'string',
// Add a reference to User
owner: {
model: 'user'
}
} }
}); });
......
...@@ -6,11 +6,15 @@ var userCollection = Waterline.Collection.extend({ ...@@ -6,11 +6,15 @@ var userCollection = Waterline.Collection.extend({
attributes: { attributes: {
name: 'string', name: 'string',
email: 'string', email: 'string',
// Add a reference to Projects // Add a reference to Projects
projects: { projects: {
collection: 'project', collection: 'project',
via: 'owner' via: 'owner'
},
// Add a reference to Settings
settings: {
collection: 'setting',
via: 'owner'
} }
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment