Events & plans
brand_looks
Columns
| Column | Type | Null | Default | Keys |
|---|---|---|---|---|
| id | uuid | no | gen_random_uuid() | PK |
| profile_id | uuid | no | — | |
| name | text | no | — | |
| description | text | no | — | |
| palette | jsonb | no | [] | |
| references | jsonb | no | [] | |
| source | text | yes | — | |
| created_by | uuid | yes | — | |
| created_at | timestamp | yes | now() | |
| updated_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
Unique
None besides the primary key.
Indexes
- (profile_id)brand_looks_profile_idx
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
- referral.promoKit
- businessFlyers.state
- businessFlyers.make
- businessFlyers.directions
- businessFlyers.again
- businessFlyers.feed
- businessFlyers.fix
- businessFlyers.refresh
- businessFlyers.keep
- businessFlyers.copyLooks
- businessLooks.list
- businessLooks.create
- businessLooks.update
- businessLooks.remove
- businessLooks.read
- businessLooks.generate
REST & webhooks
- ANY /mcp
- ANY /mcp/public
Relations
Rendering diagram…
Diagram source
erDiagram
brand_looks {
uuid id PK
uuid profile_id FK
uuid created_by FK
}
dancers {
uuid id PK
text email UK
text neon_auth_id UK
text username UK
}
event_flyers {
uuid id PK
uuid event_id FK
uuid post_id FK
uuid look_id FK
uuid created_by FK
}
profiles {
uuid id PK
text username UK
}
profiles ||--o{ brand_looks : "profile_id"
dancers |o--o{ brand_looks : "created_by"
brand_looks |o--o{ event_flyers : "look_id"
dancers |o--o{ event_flyers : "created_by" Defined at server/database/schema.ts:1078 as brandLooks.