Skip to content
Events & plans

event_flyers

Columns

ColumnTypeNullDefaultKeys
iduuid nogen_random_uuid()
PK
event_iduuid no—
post_iduuid yes—
batch_iduuid no—
look_iduuid yes—
lookjsonb no—
modetext no"paint"
base_flyer_iduuid yes—
statustext no"painting"
urltext yes—
widthinteger yes—
heightinteger yes—
linesjsonb no[]
picturedjsonb no[]
notestext yes—
prompttext yes—
modeltext yes—
checkjsonb yes—
errortext yes—
kept_attimestamp 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

  • (event_id, created_at)
    event_flyers_event_idx
  • (batch_id)
    event_flyers_batch_idx

Foreign keys

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
  ai_usage {
    uuid id PK
    uuid event_id FK
    uuid flyer_id FK
    uuid dancer_id FK
  }
  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
  }
  event_posts {
    uuid id PK
    uuid event_id FK
    uuid created_by FK
  }
  events {
    uuid id PK
    uuid host_profile_id FK
    uuid edited_by FK
  }
  events |o--o{ ai_usage : "event_id"
  event_flyers |o--o{ ai_usage : "flyer_id"
  dancers |o--o{ ai_usage : "dancer_id"
  dancers |o--o{ brand_looks : "created_by"
  events ||--o{ event_flyers : "event_id"
  event_posts |o--o{ event_flyers : "post_id"
  brand_looks |o--o{ event_flyers : "look_id"
  dancers |o--o{ event_flyers : "created_by"
  events ||--o{ event_posts : "event_id"
  dancers |o--o{ event_posts : "created_by"
  dancers |o--o{ events : "edited_by"

Defined at server/database/schema.ts:1137 as eventFlyers.