text: module.exports = function (sequelize, DataTypes) {
    return sequelize.define('items', {
      user_id: {
        type: DataTypes.INTEGER,
        // AllowNull is a flag that restricts a todo from being
        // entered if it doesn't have a text value
        allowNull: false,
        // len is a validation that checks that our todo is
        // between 1 and 140 characters
        validate: {
          len: [1],
        },
      },
      item_name: {
        type: DataTypes.STRING,
        // AllowNull is a flag that restricts a todo from being
        // entered if it doesn't have a text value
        allowNull: false,
        // len is a validation that checks that our todo is
        // between 1 and 140 characters
        validate: {
          len: [1, 256],
        },
      },
      item_price: {
        type: DataTypes.STRING,
        // AllowNull is a flag that restricts a todo from being
        // entered if it doesn't have a text value
        allowNull: false,
        // len is a validation that checks that our todo is
        // between 1 and 140 characters
        validate: {
          len: [1, 256],
        },
      },
      item_quantity: {
        type: DataTypes.INTEGER,
        // AllowNull is a flag that restricts a todo from being
        // entered if it doesn't have a text value
        allowNull: false,
        // len is a validation that checks that our todo is
        // between 1 and 140 characters
        validate: {
          len: [1],
        },
      },
      item_desc: {
        type: DataTypes.STRING,
        // AllowNull is a flag that restricts a todo from being
        // entered if it doesn't have a text value
        allowNull: false,
        // len is a validation that checks that our todo is
        // between 1 and 140 characters
        validate: {
          len: [1],
        },
      },
      item_img_url: {
        type: DataTypes.STRING,
        // AllowNull is a flag that restricts a todo from being
        // entered if it doesn't have a text value
        allowNull: false,
        // len is a validation that checks that our todo is
        // between 1 and 140 characters
        validate: {
          len: [1],
        },
      },
    },
      {
        freezeTableName: true,
      });
  };
  