Skip to content
Gigs & hangouts

hangout_rsvps

Columns

ColumnTypeNullDefaultKeys
iduuid nogen_random_uuid()
PK
hangout_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

  • (hangout_id, dancer_id) hangout_rsvp_unique

Indexes

No secondary indexes.

Foreign keys

  • hangout_id → hangouts.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).

Relations

Rendering diagram…

Diagram source
erDiagram
  dancers {
    uuid id PK
    text email UK
    text neon_auth_id UK
    text username UK
  }
  hangout_rsvps {
    uuid id PK
    uuid hangout_id FK
    uuid dancer_id FK
  }
  hangouts {
    uuid id PK
    uuid event_id FK
    uuid dancer_id FK
  }
  hangouts ||--o{ hangout_rsvps : "hangout_id"
  dancers ||--o{ hangout_rsvps : "dancer_id"
  dancers ||--o{ hangouts : "dancer_id"

Defined at server/database/schema.ts:828 as hangoutRsvps.