static associate(models) {
      User.hasMany(models.Activity, {
        foreignKey: 'cardId',
        as: 'activites',
      });
      User.belongsToMany(models.Card, { 
        through: models.Member,
        foreignKey: 'userId',
      });
    }
/**
     * Helper method for defining associations.
     * This method is not a part of Sequelize lifecycle.
     * The `models/index` file will call this method automatically.
     */
Helper method for defining associations.
This method is not a part of Sequelize lifecycle.
The `models/index` file will call this method automatically.
Helper method for defining associations . This method is not a part of Sequelize lifecycle . The ` models / index ` file will call this method automatically .
static associate(models) {
      User.hasMany(models.Activity, {
        foreignKey: 'cardId',
        as: 'activites',
      });
      User.belongsToMany(models.Card, { 
        through: models.Member,
        foreignKey: 'userId',
      });
    }
static associate ( models ) { User . hasMany ( models . Activity , { foreignKey : 'cardId' , as : 'activites' , } ) ; User . belongsToMany ( models . Card , { through : models . Member , foreignKey : 'userId' , } ) ; }
Helper method for defining associations.
Helper method for defining associations .