diff --git a/lib/bones73k/accounts/user.ex b/lib/bones73k/accounts/user.ex index 8d67ee0..63f9da3 100644 --- a/lib/bones73k/accounts/user.ex +++ b/lib/bones73k/accounts/user.ex @@ -17,7 +17,7 @@ defmodule Bones73k.Accounts.User do @derive {Inspect, except: [:password]} @primary_key {:id, :binary_id, autogenerate: true} - @foreign_key_type :binary_id + # @foreign_key_type :binary_id schema "users" do field :email, :string field :password, :string, virtual: true diff --git a/lib/bones73k/properties/property.ex b/lib/bones73k/properties/property.ex index 97135e1..7b5a688 100644 --- a/lib/bones73k/properties/property.ex +++ b/lib/bones73k/properties/property.ex @@ -8,7 +8,7 @@ defmodule Bones73k.Properties.Property do field :description, :string field :name, :string field :price, :decimal - belongs_to :user, Bones73k.Accounts.User + field :user_id, :binary_id timestamps() end diff --git a/lib/bones73k_web/live/modal_component.ex b/lib/bones73k_web/live/modal_component.ex index 63df8b8..8336359 100644 --- a/lib/bones73k_web/live/modal_component.ex +++ b/lib/bones73k_web/live/modal_component.ex @@ -11,7 +11,7 @@ defmodule Bones73kWeb.ModalComponent do phx-target="#<%= @id %>" phx-page-loading> -