Skip to content
Festival dinners

dinner_group_members

Columns

ColumnTypeNullDefaultKeys
iduuid nogen_random_uuid()
PK
group_iduuid no—
dancer_iduuid no—

Value lists come from .$type<'a' | 'b'>() in the schema — enforced in TypeScript only, not by the database.

Keys, constraints & indexes

Unique

None besides the primary key.

Indexes

No secondary indexes.

Foreign keys

Used by

Code that reads or writes this table, found by static analysis of the tRPC routers and API handlers (including helpers they call).

REST & webhooks

  • ANY /mcp
  • ANY /mcp/public

Relations

Rendering diagram…

Diagram source
erDiagram
  dancers {
    uuid id PK
    text email UK
    text neon_auth_id UK
    text username UK
  }
  dinner_group_members {
    uuid id PK
    uuid group_id FK
    uuid dancer_id FK
  }
  dinner_groups {
    uuid id PK
    uuid dinner_id FK
  }
  dinner_groups ||--o{ dinner_group_members : "group_id"
  dancers ||--o{ dinner_group_members : "dancer_id"

Defined at server/database/schema.ts:152 as dinnerGroupMembers.