I'm postfixing schema modules Entity. And I though actual schema name would be schema <this>.
But has_many looks for entity_id instead of <schema>_id.
Is schema name inferred from the module name? Or am I missing something?
defmodule Feder.Auth.Account.Entity do
use Feder, :entity
schema "account" do
field :email, :string
# invalid association `access` in schema Feder.Auth.Account.Entity: associated schema Feder.Auth.Access.Entity does not have field `entity_id`
has_many :access, Feder.Auth.Access.Entity
timestamps()
end
...
end