Commit ad680a48 authored by Clive Makamara's avatar Clive Makamara

Test WakaTime

parent 7d14912d
......@@ -5,7 +5,12 @@ var settingCollection = Waterline.Collection.extend({
connection: 'default',
attributes: {
name: 'string',
value: 'string'
value: 'string',
// Add a reference to User
owner: {
model: 'user'
}
}
});
......
......@@ -6,11 +6,15 @@ var userCollection = Waterline.Collection.extend({
attributes: {
name: 'string',
email: 'string',
// Add a reference to Projects
projects: {
collection: 'project',
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