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