text: const { Model, DataTypes } = require('sequelize');
  const sequelize = require('../config/connection');
  
  class Comments extends Model { }
  
  Comments.init(
      {
          id: {
              type: DataTypes.INTEGER,
              allowNull: false,
              primaryKey: true,
              autoIncrement: true,
          },
          content: {
              type: DataTypes.STRING,
              allowNull: false,
          },
          user_id: {
              type: DataTypes.INTEGER,
              allowNull: false,
              references: {
                  model: 'User',
                  key: 'id'
              },
          },
          blog_post_id: {
              type: DataTypes.INTEGER,
              allowNull: false,
              references: {
                  model: 'Blog_posts',
                  key: 'id'
              },
          },
          date_created: {
              type: DataTypes.DATE,
              allowNull: false,
          },
      },
      {
          sequelize,
          timestamps: false,
          freezeTableName: true,
          underscored: true,
          modelName: 'comments',
      }
  );
  
  module.exports = Comments;
  