   import Ecto.Query, warn: false
   alias Coffeeword.Repo
 
-  alias Coffeeword.Publications.Article
+  alias Coffeeword.Publications.{Article, Author}
+  alias Coffeeword.Accounts
 
   @doc """
   Returns the list of articles.

      ** (Ecto.NoResultsError)

  """
  def get_author!(id), do: Repo.get!(Author, id)

  @doc """
  Creates a author.

      ** (Ecto.NoResultsError)

  """
  def get_article!(id) do
    Article
    |> Repo.get!(id)
    |> Repo.preload(author: [user: :credential])
  end

  @doc """
  Creates a article.
