Storehouse.Ecto.Blob.Schema (Storehouse v0.2.0)

Copy Markdown View Source

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

Summary

Functions

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

Functions

fields()

(macro)

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