Skip to content
Festival dinners

dinner_groups

Columns

ColumnTypeNullDefaultKeys
iduuid nogen_random_uuid()
PK
dinner_iduuid no—
chat_linktext yes—
created_attimestamp yesnow()

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

  • dinner_id → dinners.id
    on delete no action

Referenced by

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
  dinner_group_members {
    uuid id PK
    uuid group_id FK
    uuid dancer_id FK
  }
  dinner_groups {
    uuid id PK
    uuid dinner_id FK
  }
  dinners {
    uuid id PK
    uuid festival_id FK
  }
  dinner_groups ||--o{ dinner_group_members : "group_id"
  dinners ||--o{ dinner_groups : "dinner_id"

Defined at server/database/schema.ts:145 as dinnerGroups.