Skip to content
Events & plans

brand_looks

Columns

ColumnTypeNullDefaultKeys
iduuid nogen_random_uuid()
PK
profile_iduuid no—
nametext no—
descriptiontext no—
palettejsonb no[]
referencesjsonb no[]
sourcetext yes—
created_byuuid yes—
created_attimestamp yesnow()
updated_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

  • (profile_id)
    brand_looks_profile_idx

Foreign keys

  • profile_id → profiles.id
    on delete cascade
  • created_by → dancers.id
    on delete set null

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

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.