post_media table

The post_media table in the Social Media Database Schema schema has 10 columns, keyed by id, with 1 foreign key to posts.

Bytes live in object storage. This table holds the pointer and the metadata a client needs to lay out before the file loads.

Columns (10)

Columns of the post_media table
ColumnTypeConstraintsDescription
iduuidprimary key
post_iduuidnot null, references posts.id
typemedia_typenot null
urlvarchar(500)not null
thumbnail_urlvarchar(500)
alt_textvarchar(500)
widthinteger
heightinteger
duration_secondsinteger
positionsmallintnot null

Indexes (1)

  • (post_id, position)

Relationships