text: module.exports = {
    up: async (queryInterface, Sequelize) => {
      await queryInterface.createTable('Token', {
        id: {
          allowNull: false,
          autoIncrement: true,
          primaryKey: true,
          type: DataTypes.INTEGER,
        },
        token: {
          type: String,
          required: true,
          index: true,
        },
        user: {
          type: mongoose.SchemaTypes.ObjectId,
        },
        type: {
          type: DataTypes.STRING,
        },
        expires: {
          type: DataTypes.DATE,
        },
        blacklisted: {
          type: DataTypes.BOOLEAN,
          default: false,
        },
        createdAt: {
          allowNull: false,
          type: DataTypes.DATE,
        },
        updatedAt: {
          allowNull: false,
          type: DataTypes.DATE,
        },
      });
    },
    down: async (queryInterface, Sequelize) => {
      await queryInterface.dropTable('Token');
    },
  };
  