post_media table

The post_media table in the Blog Database Schema schema has 3 columns, with 2 foreign keys to posts and media.

Many-to-many so one image can appear in several posts without being re-uploaded.

Columns (3)

Columns of the post_media table
ColumnTypeConstraintsDescription
post_iduuidnot null, references posts.id
media_iduuidnot null, references media.id
positionsmallintnot null

Relationships