Work / DwarSeva / Wiki / Entities
domain-model
Entitycanonicalverified 2026-10-04
DOMAIN.MODELSummary
The things the platform is made of, and the rules that hold between them.
Canonical values
| Key | Value | Last changed |
|---|---|---|
| ENTITY.USER | Multi-society membership, authentication, device management | 2026-10-04 |
| ENTITY.SOCIETY | Residential community with wings and units | 2026-10-04 |
| ENTITY.SOCIETY-MEMBER | A user's role and status in one society | 2026-10-04 |
| ENTITY.UNIT | One apartment or house; owned or rented | 2026-10-04 |
| ENTITY.VISITOR-REQUEST | Guest access: request, approval, check-in, check-out | 2026-10-04 |
| ENTITY.BILL / PAYMENT | Society fees, maintenance, utilities | 2026-10-04 |
| ENTITY.ANNOUNCEMENT | Society notices and notifications | 2026-10-04 |
| RULE.MULTI-TENANT | Users belong to multiple societies | 2026-10-04 |
| RULE.RBAC | Permissions differ per role and per society | 2026-10-04 |
| RULE.VISITOR-FLOW | Request → Approval → Check-in/out → Notification | 2026-10-04 |
| RULE.FINANCE | Society fees, maintenance, utilities, billing cycles | 2026-10-04 |
| RULE.REALTIME | Push notifications, status updates, alerts | 2026-10-04 |
| MODELS.COUNT | 25 Prisma models: User, PhoneOtp, EmailVerificationToken, PasswordResetToken, Session, Country, State, City, Plan, PlanFeature, SubscriptionPlan, Society, Wing, Unit, SocietyMember, UnitMember, VisitorRequest, DevicePushToken, Payment, Bill, BillItem, PaymentItem, Notification, Announcement, Feedback | 2026-10-04 |
Related
- roles · membership · society · visitor-request · bill · announcement
- society-scope — what multi-tenant means in a request
Sources
- AGENTS.md's former "Business context" section (git history of
.ai-assistant-rules.md, lines 534–552) - packages/db/prisma/schema.prisma