Data Layer low complexity backend
0
Dependencies
1
Dependents
2
Entities
0
Integrations

Description

Data access layer for the user_local_associations junction table. Manages persistence of user-to-association relationships including the is_primary flag, enforces database-level constraints via partial unique index, and provides query methods for membership lookups and reporting scopes.

Feature: Member Associations

association-membership-store

Responsibilities

  • Persist user-association membership records
  • Enforce partial unique index on primary association
  • Query memberships by user or by association
  • Support bulk insert operations for mass assignment

Interfaces

create(userId, associationId, isPrimary)
delete(userId, associationId)
findByUser(userId)
findByAssociation(associationId)
updatePrimary(userId, associationId)
bulkCreate(records)
findPrimaryAssociation(userId)
countMembershipsByAssociation(associationId)

Relationships

Dependents (1)

Components that depend on this component

Related Data Entities (2)

Data entities managed by this component