Skip to content
Festivals & ticketing

festival_signups

Columns

ColumnTypeNullDefaultKeys
iduuid nogen_random_uuid()
PK
festival_iduuid no—
dancer_iduuid yes—
paid_amountinteger no0
stripe_session_idtext yes—
verified_ticket_holderboolean nofalse
tickettailor_order_idtext yes—
unique
tickettailor_buyer_emailtext yes—
verified_attimestamp yes—
roster_visibilitytext
public_fullpublic_minimalhidden
no"public_minimal"
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

  • (tickettailor_order_id) festival_signups_tickettailor_order_id_unique
  • (festival_id, dancer_id) festival_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).

Relations

Rendering diagram…

Diagram source
erDiagram
  dancers {
    uuid id PK
    text email UK
    text neon_auth_id UK
    text username UK
  }
  festival_signups {
    uuid id PK
    uuid festival_id FK
    uuid dancer_id FK
    text tickettailor_order_id UK
  }
  festivals {
    uuid id PK
    text slug UK
  }
  festivals ||--o{ festival_signups : "festival_id"
  dancers |o--o{ festival_signups : "dancer_id"

Defined at server/database/schema.ts:97 as festivalSignups.