Expand description
Organizations as owners: an organization area’s principal is the organization, so its
records are the organization’s, while the account acting in it is read from the session.
Members hold a role each and join by an invitation mailed to their address; with
billing, members and pending invitations are held to the seats the plan allows.
Structs§
- Acting
- Read on every request, so a removed member or a changed role counts at once.
- Invitation
- A role offered to whoever holds the mailed link and signs in with its address.
- Member
Joined - Raised when an account joins an organization, by founding it or by accepting an invitation.
- Member
Left - Raised when a member leaves, is removed, or closes its account.
- Member
Role Changed - Organization
- Owns itself, as an account does, so its area reaches it and what it owns. Deleted softly, so the records its members’ histories name stay.
- Organization
Deleted - Raised when an owner deletes the organization, after every member left. What it owns in
other modules stays until they erase it, listening with
#[on]. - Organization
Member - Removed softly, so the record of who belonged stays.
Enums§
Constants§
- MEMBER_
ROUTES - MODULE
- Its routes are mounted in the app’s own areas (
member_routes,organization_routes). - ORGANIZATION_
ROUTES
Traits§
Functions§
- member_
routes - migrations
- organization_
routes Mis the member area an invitation is accepted in.