Skip to main content

Crate sofie_tenancy

Crate sofie_tenancy 

Source
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.
MemberJoined
Raised when an account joins an organization, by founding it or by accepting an invitation.
MemberLeft
Raised when a member leaves, is removed, or closes its account.
MemberRoleChanged
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.
OrganizationDeleted
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].
OrganizationMember
Removed softly, so the record of who belonged stays.
OrganizationMemberships
For sofie_identity::account_data::register. The organizations own the memberships, so they are read beyond the closing account’s reach.

Enums§

OrganizationRole

Constants§

MEMBER_ROUTES
MODULE
Its routes are mounted in the app’s own areas (member_routes, organization_routes).
ORGANIZATION_ROUTES
TRANSLATIONS

Traits§

OrganizationArea

Functions§

member_routes
migrations
organization_routes
M is the member area an invitation is accepted in.
worker

Type Aliases§

OrganizationId