 
   use BorsNG.Database.Model
 
-  @type t :: %Patch{}
+  @type t :: %__MODULE__{}
   @type id :: pos_integer
 
   schema "patches" do

      order_by: [desc: p.pr_xref]
  end

  def all_for_project(project_id, :open) do
    from p in Patch,
      where: p.open,

    timestamps()
  end

  @spec changeset(t | Ecto.Changeset.t, map) :: Ecto.Changeset.t
  @doc """
  Builds a changeset based on the `struct` and `params`.
  """
