Collect.Schema (Collect v0.1.2)

Copy Markdown

Ecto.Schema helper.

Summary

Functions

Macro that adds the default document table columns to an Ecto.Schema.

Functions

default_collect_fields()

(macro)

Macro that adds the default document table columns to an Ecto.Schema.

Example

use Ecto.Schema
import Collect.Schema

@primary_key false
schema "documents" do
  default_collect_fields()

  # Configured fields:
  field(:resource_id, :binary)
  ...
end