Skip to content
Festival dinners

dinners

Columns

ColumnTypeNullDefaultKeys
iduuid nogen_random_uuid()
PK
festival_iduuid no—
daytext no—
datedate yes—
time_slottext no—
restauranttext yes—
restaurant_addresstext yes—
reveal_datedate yes—
max_sizeinteger no6

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

Keys, constraints & indexes

Unique

  • (festival_id, day, time_slot) dinner_festival_day_time

Indexes

No secondary indexes.

Foreign keys

  • festival_id → festivals.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).

tRPC procedures

REST & webhooks

  • ANY /mcp
  • ANY /mcp/public

Relations

Rendering diagram…

Diagram source
erDiagram
  dinner_groups {
    uuid id PK
    uuid dinner_id FK
  }
  dinner_signups {
    uuid id PK
    uuid dinner_id FK
    uuid dancer_id FK
  }
  dinners {
    uuid id PK
    uuid festival_id FK
  }
  festivals {
    uuid id PK
    text slug UK
  }
  dinners ||--o{ dinner_groups : "dinner_id"
  dinners ||--o{ dinner_signups : "dinner_id"
  festivals ||--o{ dinners : "festival_id"

Defined at server/database/schema.ts:122 as dinners.