Current section

Files

Jump to
bling stubs subscription_item_schema.ex.stub
Raw

stubs/subscription_item_schema.ex.stub

defmodule <%= @module_name %>.Subscriptions.SubscriptionItem do
use Ecto.Schema
schema "subscription_items" do
field :stripe_id, :string
field :stripe_product_id, :string
field :stripe_price_id, :string
field :quantity, :integer
belongs_to :subscription, <%= @module_name %>.Subscriptions.Subscription
timestamps(type: :utc_datetime)
end
end