text: const { Model, DataTypes } = require("sequelize");
  const sequelize = require("../config/connection");
  
  class Department extends Model {}
  
  Department.init(
    {
      id: {
        type: DataTypes.INTEGER,
        allowNull: false,
        primaryKey: true,
        autoIncrement: true,
      },
      name: {
        type: DataTypes.STRING(30),
  
        allowNull: false,
      },
    },
    {
      sequelize,
      timestamps: false,
      freezeTableName: true,
      underscored: true,
      modelName: "Department",
    }
  );
  
  module.exports = Department;
  