chore: adds country memberfield

This commit is contained in:
carla 2026-02-24 08:31:52 +01:00
parent 056fd04ddf
commit 1fd1880424
4 changed files with 585 additions and 1 deletions

View file

@ -574,6 +574,10 @@ defmodule Mv.Membership.Member do
allow_nil? true
end
attribute :country, :string do
allow_nil? true
end
attribute :search_vector, AshPostgres.Tsvector,
writable?: false,
public?: false,
@ -1167,7 +1171,8 @@ defmodule Mv.Membership.Member do
contains(postal_code, ^query) or
contains(house_number, ^query) or
contains(email, ^query) or
contains(city, ^query)
contains(city, ^query) or
contains(country, ^query)
)
end