# `Storehouse.Ecto.Blob.Schema`
[🔗](https://github.com/hattoriai/storehouse/blob/v0.2.0/lib/storehouse/ecto/blob/schema.ex#L2)

A blob schema of the app's own (`Storehouse.Ecto.Blob`): its primary
key a UUID, its timestamps in microseconds, its usage table, and
`fields/0` in its `schema` block.

    defmodule MyApp.Photo do
      use Storehouse.Ecto.Blob.Schema, usages: "photo_usages"

      schema "photos" do
        Storehouse.Ecto.Blob.Schema.fields()
        field :alt_text, :string
      end
    end

## Options

  * `:usages` - the usage table (`Storehouse.Ecto.Usage`). The default
    is `"storehouse_usages"`.

# `fields`
*macro* 

The fields of a blob: a migration's (`Storehouse.Ecto.Migrations`) columns.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
