text: const Sequelize = require('sequelize');
  
  module.exports = class Hashtag extends Sequelize.Model {
    static init(sequelize) {
      return super.init({
        title: {
          type: Sequelize.STRING(15),
          allowNull: false,
          unique: true,
        },
      }, {
        sequelize,
        timestamps: true,
        underscored: false,
        modelName: 'Hashtag',
        tableName: 'hashtags',
        paranoid: false,
        charset: 'utf8mb4',
        collate: 'utf8mb4_general_ci',
      });
    }
  
    static associate(db) {
      db.Hashtag.belongsToMany(db.Post, { through: 'PostHashtag' });
      db.Hashtag.belongsToMany(db.Quest, {through: 'QuestHashtag'});
  
      db.Hashtag.belongsToMany(db.Expected, {through: 'ExpectedHashTag'});
      db.Hashtag.belongsToMany(db.Performed, {through: 'PerformedHashTag'});
    }
  };