Skip to content
Profiles & cities

community_groups

Community groups (WhatsApp / Telegram / …) per city — the cold-start directory for cities where WeDance has no events yet.

Columns

ColumnTypeNullDefaultKeys
iduuid nogen_random_uuid()
PK
city_slugtext no—
nametext no—
platformtext
whatsapptelegramfacebookother
no"whatsapp"
invite_urltext no—
stylesjson yes[]
sourcetext yes—
verifiedboolean yesfalse
statustext
visiblehidden
no"visible"
report_countinteger yes0
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

None besides the primary key.

Indexes

No secondary indexes.

Foreign keys

None.

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).

REST & webhooks

  • ANY /mcp
  • ANY /mcp/public

Relations

Rendering diagram…

Diagram source
erDiagram
  community_group_reports {
    uuid id PK
    uuid group_id FK
    uuid dancer_id FK
  }
  community_groups {
    uuid id PK
  }
  community_groups ||--o{ community_group_reports : "group_id"

Defined at server/database/schema.ts:286 as communityGroups.