Modelo de usuarios para empezar
This commit is contained in:
parent
dd965f7c0a
commit
570acb9585
@ -20,9 +20,6 @@ module.exports = function (sequelize, DataTypes) {
|
|||||||
through: models.EntityEntitiesTypes,
|
through: models.EntityEntitiesTypes,
|
||||||
foreignKey: 'typeId'
|
foreignKey: 'typeId'
|
||||||
});
|
});
|
||||||
//Post.Comments = Post.hasMany(models.Comment, { foreignKey: 'postId' });
|
|
||||||
//Post.Reactions = Post.hasMany(models.PostReaction, { foreignKey: 'postId' });
|
|
||||||
//Post.User = Post.belongsTo(models.User, { foreignKey: 'userId' });
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return EntityType;
|
return EntityType;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user