Skip to main content
A WorkspaceGroup is a named collection that groups multiple workspaces together, enabling cross-workspace access management and shared membership. Groups are created by a specific person (the creator) and can contain any number of workspace slots via the WorkspaceGroupWorkspace join entity, and any number of members via WorkspaceGroupMembership. The entity carries its own lifecycle (created_at, updated_at, soft-deleted via deleted_at) and is identified externally by a UUID while relying on an internal serial primary key for joins.
Internal object. Not currently exposed on the public REST API. The operations below describe the intended contract.

API operations

Data model

Attributes

Relationships

System-computed

  • workspace_group_id โ€” generated server-side via gen_random_uuid() default and randomUUID() application-side default; unique constraint enforced in DB
  • created_at โ€” set automatically by MikroORM onCreate: () => new Date()
  • updated_at โ€” set automatically by MikroORM onCreate and onUpdate: () => new Date()
  • deleted_at โ€” managed by the soft-delete pattern; set by the service layer on logical deletion, never by the user directly

Example

Source: apps/api/src/database/entities/WorkspaceGroup.ts ยท domain: workspace ยท tier: Platform