You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= 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
Your Environment
MssqlEcto version:
Ecto version:
Elixir version:
Erlang version:
Microsoft SQL Server version:
Operating System and version:
Link to your project:
The text was updated successfully, but these errors were encountered:
Error from code section:
Your Environment
The text was updated successfully, but these errors were encountered: