Skip to content

Instantly share code, notes, and snippets.

@shankardevy
Created Jul 15, 2017
Embed
What would you like to do?
defmodule Mango.Catalog.Product do
use Ecto.Schema
schema "products" do
field :image, :string
field :is_seasonal, :boolean, default: false
field :name, :string
field :price, :decimal
field :sku, :string
field :category, :string
field :pack_size, :string
timestamps()
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment