static associate(models) {
      Label.belongsTo(models.Board, {
        foreignKey: 'boardId',
        onDelete: 'CASCADE',
      });
      Label.belongsToMany(models.Card, {
        through: models.CardLabel,
        foreignKey: 'labelId',
      });
    }
/**
     * 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) {
      Label.belongsTo(models.Board, {
        foreignKey: 'boardId',
        onDelete: 'CASCADE',
      });
      Label.belongsToMany(models.Card, {
        through: models.CardLabel,
        foreignKey: 'labelId',
      });
    }
static associate ( models ) { Label . belongsTo ( models . Board , { foreignKey : 'boardId' , onDelete : 'CASCADE' , } ) ; Label . belongsToMany ( models . Card , { through : models . CardLabel , foreignKey : 'labelId' , } ) ; }
Helper method for defining associations.
Helper method for defining associations .