Festivals & ticketing
festival_waves
RAZ-82: "Wave" social gesture — a lightweight, per-festival expression of "I'd love to dance with you there." Mutual waves = festival friends.
Columns
| Column | Type | Null | Default | Keys |
|---|---|---|---|---|
| id | uuid | no | gen_random_uuid() | PK |
| festival_slug | text | no | — | |
| dancer_id | uuid | no | — | |
| target_dancer_id | uuid | no | — | |
| created_at | timestamp | yes | now() |
Value lists come from .$type<'a' | 'b'>() in the schema — enforced in TypeScript only, not by the database.
Keys, constraints & indexes
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
dancers {
uuid id PK
text email UK
text neon_auth_id UK
text username UK
}
festival_waves {
uuid id PK
uuid dancer_id FK
uuid target_dancer_id FK
}
dancers ||--o{ festival_waves : "dancer_id"
dancers ||--o{ festival_waves : "target_dancer_id" Defined at server/database/schema.ts:1004 as festivalWaves.