text: "use strict";
  module.exports = {
    up: async (queryInterface, Sequelize) => {
      await queryInterface.createTable(
        "Products",
        {
          id: {
            allowNull: false,
            autoIncrement: true,
            primaryKey: true,
            type: Sequelize.INTEGER,
          },
          CategoryId: {
            allowNull: false,
            type: Sequelize.INTEGER,
          },
          name: {
            allowNull: false,
            type: Sequelize.STRING,
          },
          image: {
            allowNull: false,
            type: Sequelize.STRING,
          },
          info: {
            type: Sequelize.TEXT,
          },
          status: {
            defaultValue: 1,
            type: Sequelize.TINYINT,
          },
          is_deleted: {
            defaultValue: false,
            type: Sequelize.BOOLEAN,
          },
          createdAt: {
            allowNull: false,
            type: Sequelize.DATE,
          },
          updatedAt: {
            allowNull: false,
            type: Sequelize.DATE,
          },
        },
        {
          engine: "MYISAM",
          charset: "utf8",
        }
      );
    },
    down: async (queryInterface, Sequelize) => {
      await queryInterface.dropTable("Products");
    },
  };
  