Database

Manage DB

Browse collections and tables, and watch the CQRS timing pipeline.

← Overviewβ€’Access & StaffingOrg Roles

Organization Membersorganization_members

Which users belong to which organization, and with what roles.

Table Columns & Types (5)

organization_members
ColumnPostgreSQL TypeConstraintsDefaultDocumentation
iduuid
NOT NULLPK
gen_random_uuid()Unique membership identifier.
organizationIduuid
NOT NULLFK -> organizations.id
β€”Organization.
userIduuid
NOT NULLFK -> users.id
β€”Member.
roletext
NOT NULL
'member'Comma-separated roles: owner, admin, director, steward, member.
createdAttimestamp with time zone
NOT NULL
now()When the user joined.

Database Indexes (2)

Index NameColumnsTypeQuery Performance Rationale
organization_members_org_user_idx(organizationId, userId)UNIQUEOne membership row per user per organization.
organization_members_user_idx(userId)INDEXLists a user's organizations.