Activities now have explicit project ID

This allows for directly querying activity on a certain project.
Used in Attract for task/shot activity streams.
This commit is contained in:
2016-10-12 13:40:27 +02:00
parent f4b34f1d02
commit 8aab88bdc2
2 changed files with 70 additions and 18 deletions

View File

@@ -676,6 +676,14 @@ activities_schema = {
'type': 'objectid',
'required': True
},
'project': {
'type': 'objectid',
'data_relation': {
'resource': 'projects',
'field': '_id',
},
'required': False,
},
}
notifications_schema = {