Skip to content

Instantly share code, notes, and snippets.

@shankardevy
Created July 15, 2017 05:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shankardevy/09967fcfee6a2740b25a5c60530bf2b1 to your computer and use it in GitHub Desktop.
Save shankardevy/09967fcfee6a2740b25a5c60530bf2b1 to your computer and use it in GitHub Desktop.
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