text: const { Model, DataTypes } = require('sequelize')
  
  class Publisher extends Model {
      static init(sequelize) {
          super.init({
              name: {
                  type: DataTypes.STRING(30),
                  allowNull: false
              }
          }, { sequelize })
      }
  
      static associate(models) {
          this.hasMany(models.Book, { foreignKey: 'publisher_id', as: 'books' })
      }
  }
  
  module.exports = Publisher
  