Add or subtract bonus invites for a user in a guild.
Optional lifecycle hook to close database connections upon teardown.
Get current bonus invites for a user in a guild.
Fetch top inviters for a guild ordered by net valid invites.
Fetch cumulative invite statistics for a user in a guild.
Optional lifecycle hook to initialize the storage connection.
Check whether a user recently left this guild within the specified threshold milliseconds.
Record a member join event.
Record a member leave event by updating the latest active join record.
Production-ready Mongoose persistence adapter with single-roundtrip aggregations, connection sharing, and atomic bonus counters.