Work / DwarSeva Societies / Wiki / Entities
membership
Entitycanonicalverified 2026-10-04
MEMBERSHIP.STATUSSummary
The state of a user's membership of a society or of a unit.
Canonical values
| Key | Value | Last changed |
|---|---|---|
| STATUS.ENUM | PENDING_APPROVAL, ACTIVE, SUSPENDED, LEFT, REMOVED |
2026-10-04 |
| LABEL.PENDING_APPROVAL | Pending (mobile) · Pending Approval (console) | 2026-10-04 |
| LABEL.ACTIVE | Active | 2026-10-04 |
| LABEL.SUSPENDED | Suspended | 2026-10-04 |
| LABEL.LEFT | Left | 2026-10-04 |
| LABEL.REMOVED | Removed | 2026-10-04 |
| COLOUR.PENDING_APPROVAL | warn | 2026-10-04 |
| COLOUR.ACTIVE | success | 2026-10-04 |
| COLOUR.SUSPENDED | danger | 2026-10-04 |
| COLOUR.LEFT / REMOVED | neutral | 2026-10-04 |
| REQUEST | onboarding's Submit calls requestUnitMembership(societyId, unitId) |
2026-10-04 |
| APPROVE | society admin, mobile Members tab: check → ACTIVE |
2026-10-04 |
| REJECT | society admin, mobile Members tab: cross → REMOVED |
2026-10-04 |
| LOCKED-COPY | "Pending approval" / "Your request to join this unit is Pending." | 2026-10-04 |
Drift. The console's membership badge has keys ACTIVE_MEMBER and SUSPENDED_MEMBER, which no enum produces, so an ACTIVE member renders as the raw string. Its status filter offers INACTIVE and PENDING, which are not states.
Related
- roles
- review — where the request is made
- admin-members — where it is decided
- resident-home — the locked state
Sources
- packages/db/prisma/schema.prisma
- apps/mobile/src/lib/enums.ts
- apps/mobile/src/components/society/ActiveSocietyProtected.tsx
- apps/mobile/src/app/(roles)/admin/(tabs)/members.tsx