add shops context, clothes and users-clothes
users-clothes is a many-to-many unique relationship
This commit is contained in:
@@ -8,6 +8,7 @@ defmodule PokemonCouture.Accounts.User do
|
||||
field :password, :string, virtual: true
|
||||
field :hashed_password, :string
|
||||
field :confirmed_at, :naive_datetime
|
||||
many_to_many :clothes, PokemonCouture.Shops.Clothes, join_through: "ownerships", unique: :true
|
||||
|
||||
timestamps()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user