text: export default (sequelize, DataTypes) => {
    const Favourite = sequelize.define('Favourite', {
      userId: {
        type: DataTypes.INTEGER,
        allowNull: false
      },
      recipeId: {
        type: DataTypes.INTEGER,
        allowNull: false
      },
      category: {
        type: DataTypes.STRING,
        allowNull: true
      }
    });
    Favourite.associate = (models) => {
      Favourite.belongsTo(models.User, {
        foreignKey: 'userId',
        onDelete: 'CASCADE'
      });
      Favourite.belongsTo(models.Recipe, {
        foreignKey: 'recipeId',
        onDelete: 'CASCADE'
      });
    };
    return Favourite;
  };
  