text: "use strict";
  
  module.exports = {
    up: async (queryInterface, Sequelize) => {
      await queryInterface.createTable("figures", {
        id: {
          type: Sequelize.INTEGER,
          allowNull: false,
          autoIncrement: true,
          primaryKey: true,
        },
        name: {
          type: Sequelize.STRING,
          allowNull: false,
        },
        description: {
          type: Sequelize.STRING,
          allowNull: true,
        },
        coin: {
          type: Sequelize.INTEGER,
          allowNull: false,
          defaultValue: 0,
        },
        especial: {
          type: Sequelize.BOOLEAN,
          allowNull: true,
          defaultValue: false,
        },
        image: {
          type: Sequelize.TEXT,
          allowNull: false,
        },
        created_at: {
          type: Sequelize.DATE,
          allowNull: false,
        },
        updated_at: {
          type: Sequelize.DATE,
          allowNull: false,
        },
      });
    },
  
    down: async (queryInterface, Sequelize) => {
      await queryInterface.dropTable("figures");
    },
  };
  