feat: add groups resource #371
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Simon 2026-01-27 16:03:21 +01:00
parent 8e9fbe76cf
commit 6db64bf996
Signed by: simon
GPG key ID: 40E7A58C4AA1EDB2
12 changed files with 742 additions and 18 deletions

View file

@ -582,6 +582,12 @@ defmodule Mv.Membership.Member do
# has_many: All fee cycles for this member
has_many :membership_fee_cycles, Mv.MembershipFees.MembershipFeeCycle
# Groups relationships
# has_many: All member-group associations for this member
has_many :member_groups, Mv.Membership.MemberGroup
# many_to_many: All groups this member belongs to (through MemberGroup)
many_to_many :groups, Mv.Membership.Group, through: Mv.Membership.MemberGroup
end
calculations do