Skip to content

Instantly share code, notes, and snippets.

@shankardevy

shankardevy/line_item.ex Secret

Created Jul 13, 2017
Embed
What would you like to do?
defmodule Mango.Sales.LineItem do
use Ecto.Schema
embedded_schema do
field :product_id, :integer
field :product_name, :string
field :pack_size, :string
field :quantity, :integer
field :unit_price, :decimal
field :total, :decimal
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment