Skip to content
Festivals & ticketing

festival_roommate_lookups

Columns

ColumnTypeNullDefaultKeys
iduuid nogen_random_uuid()
PK
festival_iduuid no—
dancer_iduuid no—
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

  • (festival_id, dancer_id) festival_roommate_dancer_unique

Indexes

No secondary indexes.

Foreign keys

  • festival_id → festivals.id
    on delete no action
  • dancer_id → dancers.id
    on delete no action

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
  }
  festival_roommate_lookups {
    uuid id PK
    uuid festival_id FK
    uuid dancer_id FK
  }
  festivals {
    uuid id PK
    text slug UK
  }
  festivals ||--o{ festival_roommate_lookups : "festival_id"
  dancers ||--o{ festival_roommate_lookups : "dancer_id"

Defined at server/database/schema.ts:929 as festivalRoommateLookups.