= Compilation error in file lib/plant.ex ==
** (ArgumentError) invalid or unknown type :uuid for field :DemoCategoryKey
lib/ecto/schema.ex:1727: Ecto.Schema.check_type!/3
lib/ecto/schema.ex:1431: Ecto.Schema.__field__/4
lib/plant.ex:5: (module)
(stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
Error from code section:
defmodule MsSqlTest.DemoCategory do
use Ecto.Schema
@primary_key {:DemoCategoryKey, :uuid, autogenerate: false}
schema "DemoCategory" do
#field :DemoCategoryKey, :uuid
field :Name, :string # Defaults to type :string
field :CategoryNo, :integer
field :Description, :string
end
end
Error from code section:
Your Environment