Migrate atlasId -> collectionId

This commit is contained in:
Tom Moor
2018-08-07 23:23:26 -07:00
parent f49c495a9a
commit 18cfe26e83
11 changed files with 50 additions and 24 deletions

View File

@ -20,6 +20,10 @@ Event.associate = models => {
as: 'collection',
foreignKey: 'collectionId',
});
Event.belongsTo(models.Collection, {
as: 'document',
foreignKey: 'documentId',
});
Event.belongsTo(models.Team, {
as: 'team',
foreignKey: 'teamId',